The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
XmlParserContext Class
Silverlight
Provides all the context information required by the XmlReader to parse an XML fragment.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
The XmlParserContext type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | XmlParserContext(XmlNameTable, XmlNamespaceManager, String, XmlSpace) | Initializes a new instance of the XmlParserContext class with the specified XmlNameTable, XmlNamespaceManager, xml:lang, and xml:space values. |
![]() ![]() ![]() | XmlParserContext(XmlNameTable, XmlNamespaceManager, String, XmlSpace, Encoding) | Initializes a new instance of the XmlParserContext class with the specified XmlNameTable, XmlNamespaceManager, xml:lang, xml:space, and encoding. |
![]() ![]() ![]() | XmlParserContext(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. |
![]() ![]() ![]() | XmlParserContext(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. |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | BaseURI | Gets or sets the base URI. |
![]() ![]() ![]() | DocTypeName | Gets or sets the name of the document type declaration. |
![]() ![]() ![]() | Encoding | Gets or sets the encoding type. |
![]() ![]() ![]() | InternalSubset | Gets or sets the internal DTD subset. |
![]() ![]() ![]() | NamespaceManager | Gets or sets the XmlNamespaceManager. |
![]() ![]() ![]() | NameTable | Gets the XmlNameTable used to atomize strings. For more information on atomized strings, see XmlNameTable. |
![]() ![]() ![]() | PublicId | Gets or sets the public identifier. |
![]() ![]() ![]() | SystemId | Gets or sets the system identifier. |
![]() ![]() ![]() | XmlLang | Gets or sets the current xml:lang scope. |
![]() ![]() ![]() | XmlSpace | Gets or sets the current xml:space scope. |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Dim xmlFrag As String = "<item rk:ID='abc-23'>hammer</item> " & _ "<item rk:ID='r2-435'>paint</item>" & _ "<item rk:ID='abc-39'>saw</item>" ' Create the XmlNamespaceManager. Dim nt As New NameTable() Dim nsmgr As New XmlNamespaceManager(nt) nsmgr.AddNamespace("rk", "urn:store-items") ' Create the XmlParserContext. Dim context As New XmlParserContext(Nothing, nsmgr, Nothing, XmlSpace.None) ' Create the reader. Dim settings As New XmlReaderSettings() settings.ConformanceLevel = ConformanceLevel.Fragment Using reader As XmlReader = XmlReader.Create(New StringReader(xmlFrag), settings, context) End Using
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
Show:




