I've set US locale with ',' (comma) as a decimal separator.
My code :
gives as result
recordNode.xml= <test limit="5,5"/>.
Why the attribute value has a ',' as a decimal separator??? I'm sure it should be a dot: <test limit="5.5"/>.
My code :
Code:
var xmlObject = new ActiveXObject("MSXML2.DOMDocument.3.0");
xmlObject.setProperty("SelectionLanguage", "XPath");
var datasetNode = xmlObject.createElement("dataset");
datasetNode.setAttribute("name", "test");
var recordNode = datasetNode.ownerDocument.createElement("test");
datasetNode.appendChild(recordNode);
recordNode.setAttribute("limit",5.5);
recordNode.xml= <test limit="5,5"/>.
Why the attribute value has a ',' as a decimal separator??? I'm sure it should be a dot: <test limit="5.5"/>.
Comment