Hello - I am trying to load an XML file into a DOMDocument and no matter what I do, the LoadXML method fails (ie returns FALSE). (I'm new, so I don't know if there's a special format for code snippets.) The code looks like this
Sub Test()

Dim objXMLDoc As MSXML2.DOMDocument
Dim loaded As Boolean

Set objXMLDoc = New MSXML2.DOMDocument
objXMLDoc.async = False
loaded = objXMLDoc.LoadXML("<chapter><title>Data Model</title><section><title>Syntax For Data Model</title></section></chapter>)")
I first tried loading from a file, then opened the file and manually built a strXML from the file, and then typed the XML code in explicitly as illustrated here. Even with this very literal XML input, the variable loaded is always FALSE. Any ideas why it won't work?
Thanks - Bill