Routine to format string of xml data

This forum is for eXpress++ general support.
Post Reply
Message
Author
Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Routine to format string of xml data

#1 Post 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.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Routine to format string of xml data

#2 Post 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.
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Routine to format string of xml data

#3 Post 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.

Post Reply