1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="XDocumentType" FullName="System.Xml.Linq.XDocumentType">
3 <TypeSignature Language="C#" Value="public class XDocumentType : System.Xml.Linq.XNode" />
4 <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit XDocumentType extends System.Xml.Linq.XNode" />
6 <AssemblyName>System.Xml.Linq</AssemblyName>
7 <AssemblyVersion>4.0.0.0</AssemblyVersion>
10 <BaseTypeName>System.Xml.Linq.XNode</BaseTypeName>
15 <attribution license="cc4" from="Microsoft" modified="false" />
16 <para>Data Type Definitions (DTD) in XML are a way to do the following:</para>
19 <para>Validate XML trees to a limited extent.</para>
22 <para>Expand entities, which is a form of text replacement.</para>
25 <para>Supply default attributes.</para>
28 <para>This class represents the XML concept of a DTD.</para>
29 <para>DTD support in sqltecxlinq is limited. </para>
30 <para>sqltecxlinq will expand internal entities by default, but it will not resolve external entity references unless an <see cref="T:System.Xml.XmlReader" /> with an associated <see cref="T:System.Xml.XmlResolver" /> is used to load the XML tree. </para>
31 <para>sqltecxlinq will not validate a document against a DTD, but you can use a validating <see cref="T:System.Xml.XmlReader" /> to perform DTD validation if necessary.</para>
32 <para>To validate an sqltecxlinq tree against an XML schema, use the <see cref="Overload:System.Xml.Schema.Extensions.Validate" /> method.</para>
33 <para>When a document contains entity references that are defined in a DTD, the references are expanded upon creation of the XML tree. However, when you serialize or save the XML tree, the content of the expanded entities is preserved; the entity references are not.</para>
34 <para>Default attributes from the DTD will be materialized as regular attributes in the XML tree. After a default attribute from the DTD is materialized, there is no way to determine that the attribute was a default attribute from the DTD.</para>
35 <para>You can populate an XML tree with an XML document that contains an internal DTD. The XML tree will then contain a <see cref="P:System.Xml.Linq.XDocument.DocumentType" /> node. When you serialize or save the tree, the internal DTD will also be saved as part of the document.</para>
38 <attribution license="cc4" from="Microsoft" modified="false" />
39 <para>Represents an XML Document Type Definition (DTD). </para>
43 <Member MemberName=".ctor">
44 <MemberSignature Language="C#" Value="public XDocumentType (System.Xml.Linq.XDocumentType other);" />
45 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Xml.Linq.XDocumentType other) cil managed" />
46 <MemberType>Constructor</MemberType>
48 <AssemblyVersion>4.0.0.0</AssemblyVersion>
51 <Parameter Name="other" Type="System.Xml.Linq.XDocumentType" />
55 <attribution license="cc4" from="Microsoft" modified="false" />
56 <para>This constructor is primarily used internally when making a deep copy of an XML tree.</para>
59 <attribution license="cc4" from="Microsoft" modified="false" />
60 <para>Initializes an instance of the <see cref="T:System.Xml.Linq.XDocumentType" /> class from another <see cref="T:System.Xml.Linq.XDocumentType" /> object.</para>
63 <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Xml.Linq.XDocumentType" /> object to copy from.</param>
66 <Member MemberName=".ctor">
67 <MemberSignature Language="C#" Value="public XDocumentType (string name, string publicId, string systemId, string internalSubset);" />
68 <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, string publicId, string systemId, string internalSubset) cil managed" />
69 <MemberType>Constructor</MemberType>
71 <AssemblyVersion>4.0.0.0</AssemblyVersion>
74 <Parameter Name="name" Type="System.String" />
75 <Parameter Name="publicId" Type="System.String" />
76 <Parameter Name="systemId" Type="System.String" />
77 <Parameter Name="internalSubset" Type="System.String" />
80 <remarks>To be added.</remarks>
82 <attribution license="cc4" from="Microsoft" modified="false" />
83 <para>Initializes an instance of the <see cref="T:System.Xml.Linq.XDocumentType" /> class. </para>
86 <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.String" /> that contains the qualified name of the DTD, which is the same as the qualified name of the root element of the XML document.</param>
87 <param name="publicId">
88 <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.String" /> that contains the public identifier of an external public DTD.</param>
89 <param name="systemId">
90 <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.String" /> that contains the system identifier of an external private DTD.</param>
91 <param name="internalSubset">
92 <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.String" /> that contains the internal subset for an internal DTD.</param>
95 <Member MemberName="InternalSubset">
96 <MemberSignature Language="C#" Value="public string InternalSubset { get; set; }" />
97 <MemberSignature Language="ILAsm" Value=".property instance string InternalSubset" />
98 <MemberType>Property</MemberType>
100 <AssemblyVersion>4.0.0.0</AssemblyVersion>
103 <ReturnType>System.String</ReturnType>
106 <value>To be added.</value>
107 <remarks>To be added.</remarks>
109 <attribution license="cc4" from="Microsoft" modified="false" />
110 <para>Gets or sets the internal subset for this Document Type Definition (DTD).</para>
114 <Member MemberName="Name">
115 <MemberSignature Language="C#" Value="public string Name { get; set; }" />
116 <MemberSignature Language="ILAsm" Value=".property instance string Name" />
117 <MemberType>Property</MemberType>
119 <AssemblyVersion>4.0.0.0</AssemblyVersion>
122 <ReturnType>System.String</ReturnType>
125 <value>To be added.</value>
126 <remarks>To be added.</remarks>
128 <attribution license="cc4" from="Microsoft" modified="false" />
129 <para>Gets or sets the name for this Document Type Definition (DTD).</para>
133 <Member MemberName="NodeType">
134 <MemberSignature Language="C#" Value="public override System.Xml.XmlNodeType NodeType { get; }" />
135 <MemberSignature Language="ILAsm" Value=".property instance valuetype System.Xml.XmlNodeType NodeType" />
136 <MemberType>Property</MemberType>
138 <AssemblyVersion>4.0.0.0</AssemblyVersion>
141 <ReturnType>System.Xml.XmlNodeType</ReturnType>
144 <value>To be added.</value>
146 <attribution license="cc4" from="Microsoft" modified="false" />
147 <para>Because all classes that derive from <see cref="T:System.Xml.Linq.XObject" /> contain a <see cref="P:System.Xml.Linq.XObject.NodeType" /> property, you can write code that operates on collections of concrete subclass of <see cref="T:System.Xml.Linq.XObject" />. Your code can then test for the node type of each node in the collection.</para>
150 <attribution license="cc4" from="Microsoft" modified="false" />
151 <para>Gets the node type for this node.</para>
155 <Member MemberName="PublicId">
156 <MemberSignature Language="C#" Value="public string PublicId { get; set; }" />
157 <MemberSignature Language="ILAsm" Value=".property instance string PublicId" />
158 <MemberType>Property</MemberType>
160 <AssemblyVersion>4.0.0.0</AssemblyVersion>
163 <ReturnType>System.String</ReturnType>
166 <value>To be added.</value>
168 <attribution license="cc4" from="Microsoft" modified="false" />
169 <para>If an XML document uses an external public DTD, this property will contain the public identifier of the external DTD.</para>
172 <attribution license="cc4" from="Microsoft" modified="false" />
173 <para>Gets or sets the public identifier for this Document Type Definition (DTD).</para>
177 <Member MemberName="SystemId">
178 <MemberSignature Language="C#" Value="public string SystemId { get; set; }" />
179 <MemberSignature Language="ILAsm" Value=".property instance string SystemId" />
180 <MemberType>Property</MemberType>
182 <AssemblyVersion>4.0.0.0</AssemblyVersion>
185 <ReturnType>System.String</ReturnType>
188 <value>To be added.</value>
190 <attribution license="cc4" from="Microsoft" modified="false" />
191 <para>If an XML document uses an external private DTD, this property will contain the private identifier of the external DTD.</para>
194 <attribution license="cc4" from="Microsoft" modified="false" />
195 <para>Gets or sets the system identifier for this Document Type Definition (DTD).</para>
199 <Member MemberName="WriteTo">
200 <MemberSignature Language="C#" Value="public override void WriteTo (System.Xml.XmlWriter writer);" />
201 <MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void WriteTo(class System.Xml.XmlWriter writer) cil managed" />
202 <MemberType>Method</MemberType>
204 <AssemblyVersion>4.0.0.0</AssemblyVersion>
207 <ReturnType>System.Void</ReturnType>
210 <Parameter Name="writer" Type="System.Xml.XmlWriter" />
214 <attribution license="cc4" from="Microsoft" modified="false" />
215 <para>This method is primarily used internally by the methods that write an XML tree to an <see cref="T:System.Xml.XmlWriter" />.</para>
218 <attribution license="cc4" from="Microsoft" modified="false" />
219 <para>Write this <see cref="T:System.Xml.Linq.XDocumentType" /> to an <see cref="T:System.Xml.XmlWriter" />.</para>
221 <param name="writer">
222 <attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Xml.XmlWriter" /> into which this method will write.</param>