Post
by hliljegren » Thu Sep 23, 2010 7:37 am
To write an XML tree to file is quite easy! There is a command called revXMLText that turns your XML tree into a text chunk, then you can use "URL" to write it to a file:
put revXMLText( xmlTreeID,,true) into URL "file:my/path/to/my/XMLFile.xml"
The double ,, is actually needed. As a second parameter you can supply a node on where to start and if you don't supply anything it will start at the tree root. The last parameter is if you want it pretty-printed or not (i.e indentation or not)
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3