MSXML2::IXMLDOMDocument2Ptr "load" method fails if "validateOnParse" is true and locale uses commas

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="font-size:x-small
The following code produces a parse error if the locale is such that decimal seperator is a comma. Double values in the xml file are decimal seperated by commas. Is there something that needs to be done to get the parser to recognize the user
locale?
MSXML2::IXMLDOMDocument2Ptr doc
<span style="font-size:x-small <font size="2
doc.CreateInstance(
</font>
<span style="color:#0000ff; font-size:x-small <span style="color:#0000ff; font-size:x-small __uuidof<span style="font-size:x-small (MSXML2::DOMDocument60), NULL, CLSCTX_INPROC_SERVER);

doc->schemas = xsd.GetInterfacePtr();
doc->async = VARIANT_FALSE;
doc->validateOnParse = VARIANT_TRUE;
doc->resolveExternals = VARIANT_TRUE;
<font size="2

</font>

<span style="color:#0000ff; font-size:x-small <span style="color:#0000ff; font-size:x-small if<span style="font-size:x-small (doc->load(docName) != VARIANT_TRUE)


View the full article
 
Back
Top