XML Encoding Stripped when Loaded
XML / XSL
1
Posts
1
Posters
1
Views
1
Watching
-
I am using vbscript to execute web services. Normally we can leave encoding out of the declaration line but we need it for chinese characters. When I load the xml from a stream (.LoadXML(...)) the encoding attribute gets stripped from the page declaration. If I try to load the file into the DOM it errors with no reason. Even If I try to set the declaration after loading it still does not showup in the XML Text.
InputFolderXML = XMLTEXT from a file Set XmlInputDoc = CreateObject("Msxml2.FreeThreadedDOMDocument.4.0") LoadXmlResult = XmlInputDoc.loadXml(InputFolderXML) XmlInputDoc.CreateXmlDeclaration "1.0", "gb2312", Nothing
Any Help will be greatly appreciated Thanks Joe