- From: Arnold, Curt <Curt.Arnold@hyprotech.com>
- Date: Fri, 9 Nov 2001 09:47:00 -0700
- To: "'Tim'" <tfraser@miray.jeffsys.net>
- Cc: "'www-dom@w3.org'" <www-dom@w3.org>
The Microsoft.public.xml newsgroup (assessible through http://msdn.microsoft.com) would be the appropriate forum. This mailing list is for issues with the DOM recommendations, not a particular implementation. loadXML is a Microsoft extension that reads the xml document from a string, not from a file. Since all strings in COM are defined to be in UTF-16, any residual encoding declaration is ignored. For example, xmlFO.loadXML "<foo/>" Or xmlFO.loadXML "<?xml version="1.0" encoding="US-EBCDIC"><foo/>" result in the same document element. Debug.Print is using a serialization routine in the DOM to generate the string representation of the DOM. The encoding does appear to be recognized since the document isn't garbage. However, since it is serializing the document to a string and strings are defined as UTF-16, the serializer does not need to specify an encoding.
Received on Friday, 9 November 2001 11:48:24 UTC