parser::AddNamespaceMapping
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 object properties and methods.
Syntax
bool AddNamespaceMapping(
LPCWSTR pszNamespace,
LPCWSTR pszPrefix
);
Parameters
- pszNamespace
XML namespace to add. For example, "https://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.
AddNamespaceMapping(L"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/", L"");
AddNamespaceMapping(L"https://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 |