Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: loadXML returns XML_E_INVALIDATROOTLEVEL [Thread Next] Re: loadXML returns XML_E_INVALIDATROOTLEVELTo: NULL Date: 12/1/2005 12:23:00 PM Hi Joe, Thanks for the reply. I've dug a little further and the thing that triggers it is defining _UNICODE in the C++ headers. When I switch back to _MBCS, it works fine. I know that loadXML only works with UTF-16 text, but isn't ASCII a proper subset of UTF-16? The generated XML was created with node->get_xml() and written directly to file without modification. I suppose I have my answer for now. I don't require the _UNICODE define--I simply thought I might need it. Regards "Joe Fawcett" wrote: > Given your XML document looks fine I've seen this happen when there is > unintentional whitespace at the start of the document. > > > -- > Joe Fawcett - XML MVP > > https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 > > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
