Indenting XML output

David Bovill david at openpartnership.net
Sun Jun 8 10:15:22 EDT 2008


Great! I missed that- will be very useful :)

Still got the problem though as it does not indent the node contents when
that goes over one line. As the node contents are xHtml it looks like I got
two choices - add the xHTML to the tree as nodes or recurse the XML tree
manually.

2008/6/8 Björnke von Gierke <bvg at mac.com>:

> 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
>>
>
> _______________________________________________
> 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