It adds that header line. Not of any value that I can see for our immediate needs. Got it working, but it's still freakin wierd. I puzzled as to the formatting???
Code:
function LoadXml($filename)
dim $, $rootNode, $objNewPI, $strType
$loadXml = CreateObject("Microsoft.XMLDOM");
$loadXml.async = False
$loadXml.preserverwhitespace = True
if not $loadXml
return
endif
$ = $loadXml.Load($filename)
$strType = " version = " + chr(34) + "1.0" + chr(34)
$objNewPI = $loadXml.createProcessingInstruction("xml", $strType)
$ = $loadXml.insertBefore ($objNewPI,$objXMLDoc.firstChild)
endfunction
_________________________
-Jim
...the sort of general malaise that only the genius possess and the insane lament.