Has anyone had success using revXMLText to output a formatted XML file
from an XML Tree? The dictionary says the last parameter should control
this feature.
From the dictionary:
revXMLText(treeID [,startNode] [, formatted])
[...]
formatted - Whether or not to produce xml with indenting and line
breaks, i.e. "pretty-printed". If you don't specify a formatted value,
the default is not to format the text, this will result in the xml
being output as a single block with no line breaks.
Here are the commands I am using:
open file tCurrFolderPath & "/element.xml" for write
write revXMLText(tTreeID, ,true) to file tCurrFolderPath &
"/element.xml"
close file tCurrFolderPath & "/element.xml"
The resulting file does not have indenting and line breaks. Should I
be entering a different value for the formatted parameter?
--ForrestD
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode