Indenting XML output

Björnke von Gierke bvg at mac.com
Sun Jun 8 09:06:59 EDT 2008


there's a feature (documented since 2.9, but available in earlier  
versions too) which intends, and inserts returns:

revXMLText(theID,,true)

On 8 Jun 2008, at 14:46, David Bovill 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:
>
>
>> function xml_MakePretty someXML
>>    replace "><" with ">" & CR & tab & "<" in someXML
>>    return someXML
>> end xml_MakePretty
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list