G
Guest
I have an XML question:
I'm have an XML node of type PointF and when it's saved to a file by
XmlDocument.Save(...) it saves as I expect it to be saved:
<ImageOrigin>{X=1.2, Y=3.4}</ImageOrigin>
But on my boss laptop this XML node is saved as:
<ImageOrigin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<X>1.2</X>
<Y>3.4</Y>
</ImageOrigin>
And it make my code to fail.
Does anybody can tell why the difference?
What should I do so the node will be saved on all computers as:
<ImageOrigin>{X=1.2, Y=3.4}</ImageOrigin>
I'm have an XML node of type PointF and when it's saved to a file by
XmlDocument.Save(...) it saves as I expect it to be saved:
<ImageOrigin>{X=1.2, Y=3.4}</ImageOrigin>
But on my boss laptop this XML node is saved as:
<ImageOrigin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<X>1.2</X>
<Y>3.4</Y>
</ImageOrigin>
And it make my code to fail.
Does anybody can tell why the difference?
What should I do so the node will be saved on all computers as:
<ImageOrigin>{X=1.2, Y=3.4}</ImageOrigin>