R
Roland Hall
I'm at a loss of how to put in LFs in an XML file.
A brief example:
dim objXML, pi, root, zones
set objXML = CreateObject("MSXML2.DOMDocument.4.0")
objXML.async = false
set pi = objXML.createProcessingInstruction("xml", "version='1.0'
encoding='ISO-8859-1'")
objXML.insertBefore pi, objXML.firstChild
set root = objXML.createElement("freight")
objXML.appendChild(root)
set zones = objXML.createNode(1, "zones", "")
root.appendChild(zones)
..
..
..
When the file is written I get this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<freight><zones><...></zones><zones><...></zones>...</freight>
My goal is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<freight>
<zones>
<...>
</zones>
<zones>
<...>
</zones>
..
..
..
</freight>
When I open a raw XML file into IE, it takes forever, and sometimes crashes
trying to read the file. I'm not sure if it is due to the extremely long
line it is trying to parse. I can open an XML file in Wordpad quick enough
but the long line still exists and it will not display the end of the line
unless I manually add line feeds. Notepad will not show it either.
A brief example:
dim objXML, pi, root, zones
set objXML = CreateObject("MSXML2.DOMDocument.4.0")
objXML.async = false
set pi = objXML.createProcessingInstruction("xml", "version='1.0'
encoding='ISO-8859-1'")
objXML.insertBefore pi, objXML.firstChild
set root = objXML.createElement("freight")
objXML.appendChild(root)
set zones = objXML.createNode(1, "zones", "")
root.appendChild(zones)
..
..
..
When the file is written I get this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<freight><zones><...></zones><zones><...></zones>...</freight>
My goal is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<freight>
<zones>
<...>
</zones>
<zones>
<...>
</zones>
..
..
..
</freight>
When I open a raw XML file into IE, it takes forever, and sometimes crashes
trying to read the file. I'm not sure if it is due to the extremely long
line it is trying to parse. I can open an XML file in Wordpad quick enough
but the long line still exists and it will not display the end of the line
unless I manually add line feeds. Notepad will not show it either.