Indenting XML output

David Bovill david at openpartnership.net
Sun Jun 8 08:46:42 EDT 2008


The output of revXmlText is hard to view. I'd like to be able to indent it
in the same way revXmlTree indents its output. Has anyone got a function for
this? I gess you need to walk the XML tree hierarchy? The function I have at
the moment is just a hack:


> function xml_MakePretty someXML
>     replace "><" with ">" & CR & tab & "<" in someXML
>     return someXML
> end xml_MakePretty



More information about the use-livecode mailing list