parser::AddNamespaceMapping (Windows CE 5.0)
This method makes the specified XML namespace and corresponding prefix available to use with object properties and methods.
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 Values
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"http://purl.org/dc/elements/1.1/", L"dc");
AddNamespaceMapping(L"urn:schemas-upnp-org:metadata-1-0/upnp/", L"upnp");
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Av_upnp.h.
Link Library: Av_upnp.lib.
C++ Namespace: av_upnp::DIDL_Lite.
See Also
Send Feedback on this topic to the authors