I see your point Jim, sorry I didnt undertand.


Quote:


I'm playing around with this a bit, but Kix doesn't seem to handle this object model correctly?




You are right.
The header idea is very good but does not work as it should. Me cannot make it work either.


Code:
  

$objNewPI = $loadXml.createProcessingInstruction("xml", $strType)


I get @error=2147352570

Code:
 

$ = $loadXml.insertBefore ($objNewPI,$objXMLDoc.firstChild)


I get @error=6


I have tryed with the XMLDOM error method ($objXMLDoc.parseError) but nothing. All DOM errors=0.

I think it is compulsory for these udf´s to include this feature and we should find out how. VBScrit source.

Any ideas guys? Can anyone else give a try?
_________________________
Life is fine.