I have been attempting to load a very simple xml file into the DOMDocument object using Excel 2007 VBA and MSXML version 6.0. I can load and parse the file using XML/Pro with no problems. When I load the file using the Load method, the method returns a true value, but nothing is loaded in the object. I do get a parse error status in the object regardless of whether or not I set the ValidateOnParse property to true or false. XML/Pro loads and validates the file without any errors.
The following is the relevant code:
The program always falls through the "if oGPXDoc.Load..." statement, but there is nothing in the oGPXDoc object, except the parse error code of -1072896760, "Invalid Character in text content".![]()
Please Login or Register to view this content.
I get this same error on several different xml files, all of which can be loaded by XML/Pro without errors.
I'm lost. Any help would be greatly appreciated.
John
Bookmarks