pitoune (1) [Avatar] Offline
#1
How do I convert a plain text file generated by Ant (a list of servers with their description) into an XML file? 13.4-"Generating an XML build log" would be just the right thing, minus the build log part. What I'm looking for is something like this: http://www.topxml.com/StylesheetCentral/Stylesheets/NonXML/FixedLengthText/FixedLengthTextToXML/FixedLengthTextToXMLOutput.xml (no fixed-length entries, however).
ErikHatcher (211) [Avatar] Offline
#2
Re: text to xml
> How do I convert a plain text file generated by Ant
> (a list of servers with their description) into an
> XML file? 13.4-"Generating an XML build log" would
> be just the right thing, minus the build log part.
> What I'm looking for is something like this:
> :
> http://www.topxml.com/StylesheetCentral/Stylesheets/No
> nXML/FixedLengthText/FixedLengthTextToXML/FixedLengthT
> extToXMLOutput.xml (no fixed-length entries, however).

Going from plain text to XML is really the job of some code, and nothing built into Ant can do that directly. Investigate using the script task or writing a Java program to do this conversion and launch it from Ant.