Indenting XML output

Sarah Reichelt sarah.reichelt at gmail.com
Sun Jun 8 17:43:20 EDT 2008


On Sun, Jun 8, 2008 at 10:46 PM, David Bovill <david at openpartnership.net> wrote:
> 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:

I wrote a function a while ago to do this using the "tidy" shell command.
It's in this post
<http://www.nabble.com/Testing-conformity-of-xml-data-to15118489.html#a15153410>.

Cheers,
Sarah



More information about the use-livecode mailing list