1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
|
<Type Name="XPathDocument" FullName="System.Xml.XPath.XPathDocument">
<TypeSignature Maintainer="auto" Language="C#" Value="public class XPathDocument : System.Xml.XPath.IXPathNavigable" />
<AssemblyInfo>
<AssemblyName>System.Xml</AssemblyName>
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ThreadSafetyStatement>This class is not thread safe.</ThreadSafetyStatement>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.Xml.XPath.IXPathNavigable</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>Represents an XML document and provides a read access to the document navigator.</summary>
<remarks>
<para>This class implements IXPathNavigable interface and class provides a fast and readonly access to the document through <see cref="T:System.Xml.XPath.XPathNavigator" />.
</para>
<para>There are two IXPathNavigable implementations in System.Xml.dll. One is XmlDocument and it creates the XPathNavigator that is based on its own Document Object Model. XPathDocument is the another one and it creates the XPathNavigator that is readonly and optimized to navigate the document.
</para>
<para>Note: XmlDocument's XPathNavigator is many times slower than that of this class when it is used to navigate previous siblings.
</para>
<para>To create compatible XPathNavigator to that of XmlDocument, XmlValidatingReader is required to create the internal document structure from source (otherwise, no ID type attributes are recognized and thus <see cref="M:System.Xml.XPath.XPathNavigator.MoveToId" /> method will result in different navigation). When an XPathDocument is constructed from URI string or Stream, it creates XmlValidatingReader.
</para>
<para>Note: In contrast, using XmlTextReader instead of URI string, Stream, or TextReader enables performance boost, since XmlValidatingReader is slower than XmlTextReader.
</para>
<para>
To keep whitespace nodes in the document, <see cref="F:System.Xml.XmlSpace.Preserve" /> is required in the constructor (to keep compatibility with XPathDocument, <see cref="P:System.Xml.XmlDocument.PreserveWhitespace" /> must be set to true.
</para>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public XPathDocument (System.IO.Stream stream);" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="stream" Type="System.IO.Stream" />
</Parameters>
<Docs>
<param name="stream">A <see cref="System.IO.Stream" /> instance to be used as the input XML.</param>
<summary>Creates a new instance of this class, validating the input document and disregarding whitespace nodes.</summary>
<remarks>To be added.</remarks>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public XPathDocument (System.IO.TextReader reader);" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="reader" Type="System.IO.TextReader" />
</Parameters>
<Docs>
<param name="reader">A <see cref="System.IO.TextReader" /> instance to be used as the input XML.</param>
<summary>Creates a new instance of this class, disregarding whitespace nodes.</summary>
<remarks>To be added.</remarks>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public XPathDocument (string uri);" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="uri" Type="System.String" />
</Parameters>
<Docs>
<param name="uri">A string that represents the URI for the input XML.</param>
<summary>Creates a new instance of this class, validating the input document and disregarding whitespace nodes.</summary>
<remarks>To be added.</remarks>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public XPathDocument (System.Xml.XmlReader reader);" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="reader" Type="System.Xml.XmlReader" />
</Parameters>
<Docs>
<param name="reader">An <see cref="System.Xml.XmlReader" /> instance to be used as the input XML.</param>
<summary>Creates a new instance of this class, disregarding whitespace nodes.</summary>
<remarks>To be added.</remarks>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public XPathDocument (string uri, System.Xml.XmlSpace space);" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="uri" Type="System.String" />
<Parameter Name="space" Type="System.Xml.XmlSpace" />
</Parameters>
<Docs>
<param name="uri">To be added.</param>
<param name="space">A <see cref="System.Xml.XmlSpace" /> value that indicates whitespace handling.</param>
<param name="reader">A string that represents the URI for the input XML.</param>
<summary>Creates a new instance of this class, with specified whitespace handling, validating the document.</summary>
<remarks>To be added.</remarks>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public XPathDocument (System.Xml.XmlReader reader, System.Xml.XmlSpace space);" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="reader" Type="System.Xml.XmlReader" />
<Parameter Name="space" Type="System.Xml.XmlSpace" />
</Parameters>
<Docs>
<param name="reader">An <see cref="System.Xml.XmlReader" /> instance to be used as the input XML.</param>
<param name="space">A <see cref="System.Xml.XmlSpace" /> value that indicates whitespace handling.</param>
<summary>Creates a new instance of this class, with specific whitespace handling.</summary>
<remarks>
<para>To support ID type attributes with this constructor, the input reader must be <see cref="System.Xml.XmlValidatingReader" /> that provides Datatype.
</para>
</remarks>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="CreateNavigator">
<MemberSignature Language="C#" Value="public System.Xml.XPath.XPathNavigator CreateNavigator ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Xml.XPath.XPathNavigator</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Creates an instance of the <see cref="System.Xml.XPath.XPathNavigator" /> supported by this class.</summary>
<returns>The <see cref="System.Xml.XPath.XPathNavigator" /> instance created by this class.</returns>
<remarks>
<para>This class returns a faster and read-only XPathNavigator implementation. The returned XPathNavigator always point to XPath Root node, the document itself (see <see cref="F:System.Xml.XPath.XPathNodeType.Root" />).
</para>
<para>Technically, the XPathNavigator implementation is designed to represent the document as indexed node tree structure.
</para>
</remarks>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
</Members>
</Type>
|