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

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'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 _
)
public XmlParserContext(
    XmlNameTable nt,
    XmlNamespaceManager nsMgr,
    string docTypeName,
    string pubId,
    string sysId,
    string internalSubset,
    string baseURI,
    string xmlLang,
    XmlSpace xmlSpace
)

Parameters

  • nt
    Type: System.Xml.XmlNameTable
    The XmlNameTable to use to atomize strings. If this is nulla null reference (Nothing in Visual Basic), the name table used to construct the nsMgr is used instead. For more information about atomized strings, see XmlNameTable.
  • docTypeName
    Type: System.String
    The name of the document type declaration.
  • baseURI
    Type: System.String
    The base URI for the XML fragment (the location from which the fragment was loaded).

Exceptions

Exception Condition
XmlException

nt is not the same XmlNameTable used to construct nsMgr.

Version Information

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

Platforms

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