<PackageReference Include="System.Xml.ReaderWriter" Version="4.0.11-beta-23409" />

XmlParserContext

public class XmlParserContext
Provides all the context information required by the XmlReader to parse an XML fragment.
public string BaseURI { get; set; }

Gets or sets the base URI.

public string DocTypeName { get; set; }

Gets or sets the name of the document type declaration.

public Encoding Encoding { get; set; }

Gets or sets the encoding type.

public string InternalSubset { get; set; }

Gets or sets the internal DTD subset.

Gets or sets the XmlNamespaceManager.

public XmlNameTable NameTable { get; set; }

Gets the XmlNameTable used to atomize strings. For more information on atomized strings, see XmlNameTable.

public string PublicId { get; set; }

Gets or sets the public identifier.

public string SystemId { get; set; }

Gets or sets the system identifier.

public string XmlLang { get; set; }

Gets or sets the current xml:lang scope.

public XmlSpace XmlSpace { get; set; }

Gets or sets the current xml:space scope.

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

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

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

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

public XmlParserContext(XmlNameTable nt, XmlNamespaceManager nsMgr, string docTypeName, string pubId, string sysId, string internalSubset, string baseURI, string xmlLang, XmlSpace xmlSpace)

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

public XmlParserContext(XmlNameTable nt, XmlNamespaceManager nsMgr, string docTypeName, string pubId, string sysId, string internalSubset, string baseURI, string xmlLang, XmlSpace xmlSpace, Encoding enc)

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