First of all what processor are you using, by the looks of it it's the MSXML
Secondly (if it is the MSXML processor), it does not remove anything, can be
proved by saving the loaded document to another file using the save method.
However, if you are using the xml property to access the docmument's content
as a string, the content is converted to a BSTR (UTF-16) and to 'neutralize'
the string the encoding is removed, other wise things like
Dom1.loadXML(Dom2.xml) would not possible as the encodin scheme must match
the input string (which is BSTR, or UTF-16).
Thirdly, this is described in the XML SDK, just look for 'xml property'.
> -----Original Message-----
> From: [log in to unmask] [mailto:[log in to unmask]]
> Sent: Tuesday, October 31, 2000 10:13 AM
> To: [log in to unmask]
> Subject: Question About Load method
> When I use load("xxx.xml") to laod a local file's content,
> I found that the one line of the source code -- <?xml
> version="1.0" encoding="gb2312-80"> was turned into "<?xml
> version="1.0"?>". Why? Where is the "encoding" part???