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

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

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

'Declaration
Public Sub New ( _
	nt As XmlNameTable, _
	nsMgr As XmlNamespaceManager, _
	docTypeName As String, _
	pubId As String, _
	sysId As String, _
	internalSubset As String, _
	baseURI As String, _
	xmlLang As String, _
	xmlSpace As XmlSpace, _
	enc As Encoding _
)

Parameters

nt
Type: System.Xml.XmlNameTable
The XmlNameTable to use to atomize strings. If this is Nothing, the name table used to construct the nsMgr is used instead. For more information about atomized strings, see XmlNameTable.
nsMgr
Type: System.Xml.XmlNamespaceManager
The XmlNamespaceManager to use for looking up namespace information, or Nothing.
docTypeName
Type: System.String
The name of the document type declaration.
pubId
Type: System.String
The public identifier.
sysId
Type: System.String
The system identifier.
internalSubset
Type: System.String
The internal DTD subset.
baseURI
Type: System.String
The base URI for the XML fragment (the location from which the fragment was loaded).
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft