|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Text to XML
Tarun wrote: >I have a requirement in which I need to convert some text output of some command into xml so that I >can parse it with a parser based upon some schema. I also have xml file(annotation) for that output. >Can anybody suggest me some already available tool for it? Most people prefer a language with good pattern matching capabilities such as perl or python to identify the appropriate information in the input and then wrap it with tags and/or store your found strings as attributes of those tags. For complex data, you'll save yourself some headaches if you do it in multiple passes instead of trying to do it all at once. Creating a simplified, dumbed-down version of the XML and then using XSLT to convert that to XML conforming to your schema may be something to consider for your last pass. Now that you've made this posting, companies with more specialized tools will probably start contacting you with promises. Remember that despite their promises the difficult part is still identifying the patterns to look for in your input, and this has a lot more to do with your input than with your choice of tools. Bob DuCharme http://www.snee.com/bobdc.blog
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








