Share via


Resource: test.xml (LoadXMLFile.js Example)

 

The following simple XML data file is well-formed.

XML File (test.xml)

<?xml version="1.0"?>
<root>
   <node>one</node>
   <nodes>
      <node>1</node>
      <node>2</node>
   </nodes>
   <node>two</node>
</root>

To add test.xml to the LoadXMLFile project

  1. Copy the XML data above, and paste it into a text file. Save the file as test.xml to the same directory where you saved LoadXMLFileProj.

Next, run the project. The result should be the output shown in the following topic.