Partager via


parser::AddNamespaceMapping (Windows Embedded CE 6.0)

1/6/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, "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.

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

See Also

Reference

parser (UPnP AV)