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. |
A version of this page is also available for
4/8/2010
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 |