OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] Text to XML

[ Lists Home | Date Index | Thread Index ]

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    


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS