Export (0) Print
Expand All

XmlParserContext Constructor (XmlNameTable, XmlNamespaceManager, String, XmlSpace, Encoding)

Initializes a new instance of the XmlParserContext class with the specified XmlNameTable, XmlNamespaceManager, xml:lang, xml:space, and encoding.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public XmlParserContext(
	XmlNameTable nt,
	XmlNamespaceManager nsMgr,
	string xmlLang,
	XmlSpace xmlSpace,
	Encoding enc
)

Parameters

nt
Type: System.Xml.XmlNameTable
The XmlNameTable to use to atomize strings. If this is null, the name table used to construct the nsMgr is used instead. For more information on atomized strings, see XmlNameTable.
nsMgr
Type: System.Xml.XmlNamespaceManager
The XmlNamespaceManager to use for looking up namespace information, or null.
xmlLang
Type: System.String
The xml:lang scope.
xmlSpace
Type: System.Xml.XmlSpace
An XmlSpace value indicating the xml:space scope.
enc
Type: System.Text.Encoding
An Encoding object indicating the encoding setting.

ExceptionCondition
XmlException

nt is not the same XmlNameTable used to construct nsMgr.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft