Page 1 of 1

Routine to format string of xml data

Posted: Thu Aug 07, 2014 7:58 am
by Cliff Wiernik
There are several open source perl/java libraries to formal xml data string to allow easier reading. Does anyone recommend an Xbase++ equivalent or function.

Re: Routine to format string of xml data

Posted: Thu Aug 07, 2014 4:23 pm
by rdonnay
You can use DC_Xml2ObjectTree() to bring it into an object then use oNode:writeXml() to write it back out to a file.
It will be formatted nicely.

Re: Routine to format string of xml data

Posted: Fri Aug 08, 2014 6:31 am
by Cliff Wiernik
Thanks. Exactly what we needed. I have used these functions but did not think about the writexml() or asstring() functions doing what we needed.