XmlParserContext Class

XmlParserContext Class

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

Provides all the context information required by the XmlReader to parse an XML fragment.

System::Object
  System.Xml::XmlParserContext

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

No code example is currently available or this language may not be supported.

The XmlParserContext type exposes the following members.

  NameDescription
Public methodXmlParserContext(XmlNameTable, XmlNamespaceManager, String, XmlSpace)Initializes a new instance of the XmlParserContext class with the specified XmlNameTable, XmlNamespaceManager, xml:lang, and xml:space values.
Public methodXmlParserContext(XmlNameTable, XmlNamespaceManager, String, XmlSpace, Encoding)Initializes a new instance of the XmlParserContext class with the specified XmlNameTable, XmlNamespaceManager, xml:lang, xml:space, and encoding.
Public methodXmlParserContext(XmlNameTable, XmlNamespaceManager, String, String, String, String, String, String, 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 methodXmlParserContext(XmlNameTable, XmlNamespaceManager, String, String, String, String, String, String, XmlSpace, Encoding)Initializes a new instance of the XmlParserContext class with the specified XmlNameTable, XmlNamespaceManager, base URI, xml:lang, xml:space, encoding, and document type values.
Top

  NameDescription
Public propertyBaseURIGets or sets the base URI.
Public propertyDocTypeNameGets or sets the name of the document type declaration.
Public propertyEncodingGets or sets the encoding type.
Public propertyInternalSubsetGets or sets the internal DTD subset.
Public propertyNamespaceManagerGets or sets the XmlNamespaceManager.
Public propertyNameTableGets the XmlNameTable used to atomize strings. For more information on atomized strings, see XmlNameTable.
Public propertyPublicIdGets or sets the public identifier.
Public propertySystemIdGets or sets the system identifier.
Public propertyXmlLangGets or sets the current xml:lang scope.
Public propertyXmlSpaceGets or sets the current xml:space scope.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

No code example is currently available or this language may not be supported.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft