I am creating an XML file from a group of flat files, using the XML object model. When I open my XML file up in Windows Explorer all the parent and child nodes are in the correct place.
Ex 1:
<title>
<tag1>test</tag1>
<tag2>test again</tag2>
</title>
When I open the file up in notepad, the XML file looks like one big string.
Ex 2:
<title><tag1>test</tag1><tag2>test again</tag2></title>
The problem I am having is the program importing the XML file I am creating is looking for the XML file to be in the format of Ex1.
Example of my code:
Set oRoot = odoc.createElement("title"
Set odoc.documentElement = oRoot
Set oNode = odoc.createElement("tag1"
oNode.Text = "testing"
oRoot.appendChild oNode
Set oNode = odoc.createElement("tag2"
oNode.Text = "testing again"
oRoot.appendChild oNode
How can I get my XML document to look like Ex 1?
Thank you,
JL Fleming