Skip to content

Commit 8839ebd

Browse files
authored
Try ::: code snippets
1 parent 0324b1e commit 8839ebd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

xml/System.Xml/XmlDocument.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,21 +1986,22 @@ The following example adds significant white space to the document.
19861986
<Docs>
19871987
<param name="text">The text for the Text node.</param>
19881988
<summary>Creates an <see cref="T:System.Xml.XmlText" /> with the specified text.</summary>
1989-
<returns>The new <see langword="XmlText" /> node.</returns>
1989+
<returns>The new node.</returns>
19901990
<remarks>
19911991
<format type="text/markdown"><![CDATA[
19921992
19931993
## Remarks
1994-
Although this method creates the new object in the context of the document, it does not automatically add the new object to the document tree. To add the new object, you must explicitly call one of the node insert methods.
1994+
1995+
Although this method creates the new object in the context of the document, it does not automatically add the new object to the document tree. To add the new object, you must explicitly call one of the node insert methods.
19951996
1996-
According to the W3C [Extensible Markup Language (XML) 1.0 recommendation](https://www.w3.org/TR/1998/REC-xml-19980210), Text nodes are only allowed within Element, Attribute and EntityReference nodes.
1997+
According to the W3C [Extensible Markup Language (XML) 1.0 recommendation](https://www.w3.org/TR/1998/REC-xml-19980210), Text nodes are only allowed within Element, Attribute and EntityReference nodes.
19971998
19981999
## Examples
19992000
20002001
The following example creates a new element and adds it to the document.
20012002
2002-
[!code-csharp[Classic WebData XmlDocument.CreateElement Example#1](~/snippets/csharp/System.Xml/XmlDocument/CreateElement/source.cs#1)]
2003-
[!code-vb[Classic WebData XmlDocument.CreateElement Example#1](~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlDocument.CreateElement Example/VB/source.vb#1)]
2003+
:::code language="csharp" source="~/snippets/csharp/System.Xml/XmlDocument/CreateElement/source.cs" id="Snippet1":::
2004+
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Data/Classic WebData XmlDocument.CreateElement Example/VB/source.vb" id="Snippet1":::
20042005
20052006
]]></format>
20062007
</remarks>

0 commit comments

Comments
 (0)