Output from XmlLiteReadWithEncoding

This topic shows the output from the Reading an Encoded XML Document Using XmlLite sample. The output shown in this topic is what you will see if you use the output from the Writing an Encoded XML Document Using XmlLite sample.

Note: You can't view the following XML file in Internet Explorer directly, as the file shows that it is encoded with utf-16. When you copy the following code, paste it into a text editor, and save the file, it will be saved with encoding of utf-8, even though the XML declaration indicates that the file is utf-16. If you want to create the following file where it has utf-16 encoding, run the sample that is introduced in the Writing an Encoded XML Document Using XmlLite topic.

Output from XmlLiteReadWithEncoding

<?xml version="1.0" encoding="utf-16" ?>

<root >
  <sub myAttr="1234" >This is a string</sub>
</root>

See Also

Concepts

Reading an Encoded XML Document Using XmlLite