Skip to content

Commit 82c9125

Browse files
committed
system.xml
1 parent 0d74517 commit 82c9125

File tree

12 files changed

+1724
-1741
lines changed

12 files changed

+1724
-1741
lines changed

xml/System.Xml.Linq/XAttribute.xml

Lines changed: 1341 additions & 1343 deletions
Large diffs are not rendered by default.

xml/System.Xml.Linq/XProcessingInstruction.xml

Lines changed: 123 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252
<Docs>
5353
<summary>Represents an XML processing instruction.</summary>
5454
<remarks>
55-
<format type="text/markdown"><![CDATA[
56-
57-
## Remarks
58-
You can use processing instructions in XML to indicate that an XML document can be processed by some processor, such as XSLT.
59-
60-
Processing instructions are nodes in the XML tree. When a processing instruction is found in the XML being parsed, LINQ to XML creates an <xref:System.Xml.Linq.XProcessingInstruction> node.
61-
55+
<format type="text/markdown"><![CDATA[
56+
57+
## Remarks
58+
You can use processing instructions in XML to indicate that an XML document can be processed by some processor, such as XSLT.
59+
60+
Processing instructions are nodes in the XML tree. When a processing instruction is found in the XML being parsed, LINQ to XML creates an <xref:System.Xml.Linq.XProcessingInstruction> node.
61+
6262
]]></format>
6363
</remarks>
6464
<related type="Article" href="/dotnet/standard/linq/linq-xml-overview">LINQ to XML overview</related>
@@ -116,11 +116,11 @@
116116
<param name="other">The <see cref="T:System.Xml.Linq.XProcessingInstruction" /> node to copy from.</param>
117117
<summary>Initializes a new instance of the <see cref="T:System.Xml.Linq.XProcessingInstruction" /> class.</summary>
118118
<remarks>
119-
<format type="text/markdown"><![CDATA[
120-
121-
## Remarks
122-
This constructor is primarily used internally to make a deep copy of an XML tree.
123-
119+
<format type="text/markdown"><![CDATA[
120+
121+
## Remarks
122+
This constructor is primarily used internally to make a deep copy of an XML tree.
123+
124124
]]></format>
125125
</remarks>
126126
<related type="Article" href="/dotnet/standard/linq/linq-xml-overview">LINQ to XML overview</related>
@@ -168,27 +168,27 @@
168168
<param name="data">The string data for this <see cref="T:System.Xml.Linq.XProcessingInstruction" />.</param>
169169
<summary>Initializes a new instance of the <see cref="T:System.Xml.Linq.XProcessingInstruction" /> class.</summary>
170170
<remarks>
171-
<format type="text/markdown"><![CDATA[
172-
173-
## Examples
174-
The following example creates an <xref:System.Xml.Linq.XProcessingInstruction>, and specifies a target and the string data for the processing instruction.
175-
176-
```csharp
177-
XProcessingInstruction pi = new XProcessingInstruction("xml-stylesheet", "type='text/xsl' href='hello.xsl'");
178-
Console.WriteLine(pi);
179-
```
180-
181-
```vb
182-
Dim pi As XProcessingInstruction = <?xml-stylesheet type='text/xsl' href='hello.xsl'?>
183-
Console.WriteLine(pi)
184-
```
185-
186-
This example produces the following output:
187-
188-
```
189-
<?xml-stylesheet type='text/xsl' href='hello.xsl'?>
190-
```
191-
171+
<format type="text/markdown"><![CDATA[
172+
173+
## Examples
174+
The following example creates an <xref:System.Xml.Linq.XProcessingInstruction>, and specifies a target and the string data for the processing instruction.
175+
176+
```csharp
177+
XProcessingInstruction pi = new XProcessingInstruction("xml-stylesheet", "type='text/xsl' href='hello.xsl'");
178+
Console.WriteLine(pi);
179+
```
180+
181+
```vb
182+
Dim pi As XProcessingInstruction = <?xml-stylesheet type='text/xsl' href='hello.xsl'?>
183+
Console.WriteLine(pi)
184+
```
185+
186+
This example produces the following output:
187+
188+
```
189+
<?xml-stylesheet type='text/xsl' href='hello.xsl'?>
190+
```
191+
192192
]]></format>
193193
</remarks>
194194
<exception cref="T:System.ArgumentNullException">The <paramref name="target" /> or <paramref name="data" /> parameter is <see langword="null" />.</exception>
@@ -240,40 +240,38 @@ Console.WriteLine(pi)
240240
</ReturnValue>
241241
<Docs>
242242
<summary>Gets or sets the string value of this processing instruction.</summary>
243-
<value>A <see cref="T:System.String" /> that contains the string value of this processing instruction.</value>
243+
<value>The string value of this processing instruction.</value>
244244
<remarks>
245-
<format type="text/markdown"><![CDATA[
246-
247-
## Remarks
248-
You can use this property to modify an XML tree. This property will cause events to occur.
249-
250-
251-
252-
## Examples
253-
The following example uses the <xref:System.Xml.Linq.XProcessingInstruction.Data%2A> property to retrieve the string value of a processing instruction.
254-
255-
```csharp
256-
XProcessingInstruction pi =
257-
new XProcessingInstruction("xml-stylesheet", "type='text/xsl' href='hello.xsl'");
258-
Console.WriteLine(pi.Data);
259-
pi.Data = "type='text/xsl' href='xform.xsl'";
260-
Console.WriteLine(pi.Data);
261-
```
262-
263-
```vb
264-
Dim pi As XProcessingInstruction = <?xml-stylesheet type='text/xsl' href='hello.xsl'?>
265-
Console.WriteLine(pi.Data)
266-
pi.Data = "type='text/xsl' href='xform.xsl'"
267-
Console.WriteLine(pi.Data)
268-
```
269-
270-
This example produces the following output:
271-
272-
```
273-
type='text/xsl' href='hello.xsl'
274-
type='text/xsl' href='xform.xsl'
275-
```
276-
245+
<format type="text/markdown"><![CDATA[
246+
247+
## Remarks
248+
You can use this property to modify an XML tree. This property will cause events to occur.
249+
250+
## Examples
251+
The following example uses the <xref:System.Xml.Linq.XProcessingInstruction.Data%2A> property to retrieve the string value of a processing instruction.
252+
253+
```csharp
254+
XProcessingInstruction pi =
255+
new XProcessingInstruction("xml-stylesheet", "type='text/xsl' href='hello.xsl'");
256+
Console.WriteLine(pi.Data);
257+
pi.Data = "type='text/xsl' href='xform.xsl'";
258+
Console.WriteLine(pi.Data);
259+
```
260+
261+
```vb
262+
Dim pi As XProcessingInstruction = <?xml-stylesheet type='text/xsl' href='hello.xsl'?>
263+
Console.WriteLine(pi.Data)
264+
pi.Data = "type='text/xsl' href='xform.xsl'"
265+
Console.WriteLine(pi.Data)
266+
```
267+
268+
This example produces the following output:
269+
270+
```
271+
type='text/xsl' href='hello.xsl'
272+
type='text/xsl' href='xform.xsl'
273+
```
274+
277275
]]></format>
278276
</remarks>
279277
<exception cref="T:System.ArgumentNullException">The string <paramref name="value" /> is <see langword="null" />.</exception>
@@ -320,34 +318,34 @@ type='text/xsl' href='xform.xsl'
320318
<summary>Gets the node type for this node.</summary>
321319
<value>The node type. For <see cref="T:System.Xml.Linq.XProcessingInstruction" /> objects, this value is <see cref="F:System.Xml.XmlNodeType.ProcessingInstruction" />.</value>
322320
<remarks>
323-
<format type="text/markdown"><![CDATA[
324-
325-
## Remarks
326-
Because all classes that derive from <xref:System.Xml.Linq.XObject> contain a <xref:System.Xml.Linq.XObject.NodeType%2A> property, you can write code that operates on collections of concrete subclass of <xref:System.Xml.Linq.XObject>. Your code can then test for the node type of each node in the collection.
327-
328-
329-
330-
## Examples
331-
The following example creates a processing instruction, and then prints its node type.
332-
333-
```csharp
334-
XProcessingInstruction pi =
335-
new XProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"hello.xsl\"");
336-
Console.WriteLine(pi.NodeType);
337-
```
338-
339-
```vb
340-
Dim pi As XProcessingInstruction = _
341-
<?xml-stylesheet type="text/xsl" href="hello.xsl"?>
342-
Console.WriteLine(pi.NodeType.ToString)
343-
```
344-
345-
This example produces the following output:
346-
347-
```
348-
ProcessingInstruction
349-
```
350-
321+
<format type="text/markdown"><![CDATA[
322+
323+
## Remarks
324+
Because all classes that derive from <xref:System.Xml.Linq.XObject> contain a <xref:System.Xml.Linq.XObject.NodeType%2A> property, you can write code that operates on collections of concrete subclass of <xref:System.Xml.Linq.XObject>. Your code can then test for the node type of each node in the collection.
325+
326+
327+
328+
## Examples
329+
The following example creates a processing instruction, and then prints its node type.
330+
331+
```csharp
332+
XProcessingInstruction pi =
333+
new XProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"hello.xsl\"");
334+
Console.WriteLine(pi.NodeType);
335+
```
336+
337+
```vb
338+
Dim pi As XProcessingInstruction = _
339+
<?xml-stylesheet type="text/xsl" href="hello.xsl"?>
340+
Console.WriteLine(pi.NodeType.ToString)
341+
```
342+
343+
This example produces the following output:
344+
345+
```
346+
ProcessingInstruction
347+
```
348+
351349
]]></format>
352350
</remarks>
353351
<related type="Article" href="/dotnet/standard/linq/linq-xml-overview">LINQ to XML overview</related>
@@ -396,36 +394,36 @@ ProcessingInstruction
396394
<ReturnType>System.String</ReturnType>
397395
</ReturnValue>
398396
<Docs>
399-
<summary>Gets or sets a string containing the target application for this processing instruction.</summary>
400-
<value>A <see cref="T:System.String" /> containing the target application for this processing instruction.</value>
397+
<summary>Gets or sets the target application for this processing instruction.</summary>
398+
<value>The target application for this processing instruction.</value>
401399
<remarks>
402-
<format type="text/markdown"><![CDATA[
403-
404-
## Examples
405-
The following example uses the <xref:System.Xml.Linq.XProcessingInstruction.Target%2A> property to retrieve the target application for a processing instruction.
406-
407-
```csharp
408-
XProcessingInstruction pi =
409-
new XProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"hello.xsl\"");
410-
Console.WriteLine(pi.Target);
411-
```
412-
413-
```vb
414-
Dim pi As XProcessingInstruction = _
415-
<?xml-stylesheet type="text/xsl" href="hello.xsl"?>
416-
Console.WriteLine(pi.Target)
417-
```
418-
419-
This example produces the following output:
420-
421-
```
422-
xml-stylesheet
423-
```
424-
400+
<format type="text/markdown"><![CDATA[
401+
402+
## Examples
403+
The following example uses the <xref:System.Xml.Linq.XProcessingInstruction.Target%2A> property to retrieve the target application for a processing instruction.
404+
405+
```csharp
406+
XProcessingInstruction pi =
407+
new XProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"hello.xsl\"");
408+
Console.WriteLine(pi.Target);
409+
```
410+
411+
```vb
412+
Dim pi As XProcessingInstruction = _
413+
<?xml-stylesheet type="text/xsl" href="hello.xsl"?>
414+
Console.WriteLine(pi.Target)
415+
```
416+
417+
This example produces the following output:
418+
419+
```
420+
xml-stylesheet
421+
```
422+
425423
]]></format>
426424
</remarks>
427425
<exception cref="T:System.ArgumentNullException">The string <paramref name="value" /> is <see langword="null" />.</exception>
428-
<exception cref="T:System.ArgumentException">The <paramref name="target" /> does not follow the constraints of an XML name.</exception>
426+
<exception cref="T:System.ArgumentException">The target does not follow the constraints of an XML name.</exception>
429427
<related type="Article" href="/dotnet/standard/linq/linq-xml-overview">LINQ to XML overview</related>
430428
</Docs>
431429
</Member>
@@ -472,11 +470,11 @@ xml-stylesheet
472470
<param name="writer">The <see cref="T:System.Xml.XmlWriter" /> to write this processing instruction to.</param>
473471
<summary>Writes this processing instruction to an <see cref="T:System.Xml.XmlWriter" />.</summary>
474472
<remarks>
475-
<format type="text/markdown"><![CDATA[
476-
477-
## Remarks
478-
This method is primarily used internally by the methods that write an XML tree to an <xref:System.Xml.XmlWriter>.
479-
473+
<format type="text/markdown"><![CDATA[
474+
475+
## Remarks
476+
This method is primarily used internally by the methods that write an XML tree to an <xref:System.Xml.XmlWriter>.
477+
480478
]]></format>
481479
</remarks>
482480
<related type="Article" href="/dotnet/standard/linq/linq-xml-overview">LINQ to XML overview</related>

0 commit comments

Comments
 (0)