OpenXmlElement.LookupNamespace method

Office 2013 and later

Resolves the namespace prefix in the context of the current node.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public string LookupNamespace(
	string prefix
)

Parameters

prefix
Type: System.String

The prefix to be resolved

Return value

Type: System.String
The resolved namespace. Returns null (Nothing in Visual Basic) if the prefix cannot be resolved.
Show: