Share via


Output from XmlLiteWriter

This topic shows the output from the Write an XML Document Using XmlLite example.

XmlLiteWriter Output

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root>
<?xml-stylesheet href="mystyle.css" title="Compact" type="text/css"?>
<root>
  <sub myAttr="1234">Markup is &lt;escaped&gt; for this string</sub>
  <anotherChild>some text</anotherChild>
<![CDATA[This is CDATA text.]]>
<containsCharacterEntity>&#x61;</containsCharacterEntity>
<containsChars>abcde</containsChars>
<containsEntity>&myEntity;</containsEntity>
<containsName>myName</containsName>
<containsNmToken>myNmToken</containsNmToken>
<!--This is a comment-->
<elementWrittenRaw/>
<rawCharacters/>
<myElement>myValue</myElement></root>

See Also

Concepts

Writing an XML Document Using XmlLite