Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This method makes the specified XML namespace and corresponding prefix available to use with objectproperties and methods.
Syntax
bool AddNamespaceMapping( LPCWSTR pszNamespace, LPCWSTR pszPrefix ); |
Parameters
- pszNamespace
-
XML namespace to add. For example, "http://purl.org/dc/elements/1.1/" (although this namespace is added by default).
- pszPrefix
-
Prefix that corresponds to the specified namespace. For example, "dc".
Return Value
TRUE if the mapping was added successfully; FALSE otherwise.
Remarks
By default, the three XML namespaces defined in the ContentDirectory DCP are automatically added, using the following calls.
Copy Code | |
---|---|
AddNamespaceMapping(L"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/", L""); AddNamespaceMapping(L"http://purl.org/dc/elements/1.1/", L"dc"); AddNamespaceMapping(L"urn:schemas-upnp-org:metadata-1-0/upnp/", L"upnp"); |
Requirements
Header | av_upnp.h |
Library | Av_upnp.lib |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.