IMXNamespaceManager

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XML Reference

IMXNamespaceManager

Provides a convenient way to manage namespaces, namespace prefixes, and namespace URIs for an XML document. With IMXNamespaceManager, namespace contexts are organized as a stack of namespace declarations. Each push operation pushes a namespace declaration or set of namespace declarations onto the stack. Each pop operation discards everything from the top of the stack. Namespace declarations on the stack have both current and local context.

Remarks

IMXNamespaceManager provides these duplicate methods for C++ processing to avoid the use of BSTR objects for C++. It is not necessary to use BSTR objects because string values are returned in a character buffer.

IMXNamespaceManager performs a search from the top of a stack through all of the namespace declarations, until a declaration is found, or until the bottom of the stack is reached.

For C++, all [in] BSTR parameters can be passed as null-terminated wchar_t*.

All indexes are continuous, and start from 0.

IMXNamespaceManager checks [in] arguments for prefixes to ensure that the prefix name is valid according to the W3C Namespaces in XML Recommendation. IMXNamespaceManager does not check URI arguments.

Versioning

MSXML 4.0 and later

Requirements

Implementation: msxml5.dll, msxml2.lib

[C/C++]

Header and IDL files: msxml2.h, msxml2.idl

Remarks

To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

IMXNamespaceManager Members | IMXNamespacePrefixes

Other Resources Other Resources

W3C Namespaces in XML Recommendation