Jim Wagner
2016-12-08 18:56:15 UTC
Greetings NUG -
Trying to (re)learn how to create and parse XML documents and how to read/write to a file. One thing, that I don’t quite understand, is happening. It has to do with end-of-line in the saved file.
Now, I am fairly sure that this makes little difference in the conversion from a string into an XmlDocument, but the visual validation is painful with a single string, no line ending, no indenting. All of the examples I see, including the LR’s entry for XmlDocument, shows a single line per element, and nicely indented. Yet, when I view the generated xml file (in TextWrangler, which is set up to view xml files), its just a single, long line.
Is there something I can do, presumably in xml.ToString (btw, I cannot find any documentation on an xml method named “ToString”!) to add useful line endings?
Thanks
Jim
James Wagner
Oregon Research Electronics
http://www.orelectronics.net <http://www.orelectronics.net/>
_______________________________________________
Xojo forum:
https://forum.xojo
Trying to (re)learn how to create and parse XML documents and how to read/write to a file. One thing, that I don’t quite understand, is happening. It has to do with end-of-line in the saved file.
Now, I am fairly sure that this makes little difference in the conversion from a string into an XmlDocument, but the visual validation is painful with a single string, no line ending, no indenting. All of the examples I see, including the LR’s entry for XmlDocument, shows a single line per element, and nicely indented. Yet, when I view the generated xml file (in TextWrangler, which is set up to view xml files), its just a single, long line.
Is there something I can do, presumably in xml.ToString (btw, I cannot find any documentation on an xml method named “ToString”!) to add useful line endings?
Thanks
Jim
James Wagner
Oregon Research Electronics
http://www.orelectronics.net <http://www.orelectronics.net/>
_______________________________________________
Xojo forum:
https://forum.xojo