Skip to content

Commit d3cec77

Browse files
committed
escape cdata
1 parent c1da25b commit d3cec77

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

xml/System.Xml/XmlReader.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4275,8 +4275,6 @@ An <see cref="T:System.Xml.XmlReader" /> asynchronous method was called without
42754275

42764276
For the asynchronous version of this method, see <xref:System.Xml.XmlReader.ReadAsync*>.
42774277

4278-
4279-
42804278
## Examples
42814279
The following example reads an XML file and displays each of the nodes:
42824280

@@ -4290,7 +4288,7 @@ An <see cref="T:System.Xml.XmlReader" /> asynchronous method was called without
42904288
**Output:**
42914289

42924290
```xml
4293-
<Item>Test with an entity: 123</Item><Item>Test with a child element <more> stuff</Item><Item>Test with a CDATA section <![CDATA[<456>]]> def</Item><Item>Test with a char entity: A</Item><!-- Fourteen chars in this element.--><Item>1234567890ABCD</Item></Items>
4291+
<Item>Test with an entity: 123</Item><Item>Test with a child element <more> stuff</Item><Item>Test with a CDATA section %3C![CDATA[<456>]]%3E def</Item><Item>Test with a char entity: A</Item><!-- Fourteen chars in this element.--><Item>1234567890ABCD</Item></Items>
42944292
```
42954293

42964294
]]></format>

0 commit comments

Comments
 (0)