[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Text to XML

  • To: <sharma.tarun@w...>, <xml-dev@l...>
  • Subject: RE: Text to XML
  • From: "DuCharme, Bob \(LNG-CHO\)" <bob.ducharme@l...>
  • Date: Mon, 23 Jan 2006 12:15:37 -0500
  • Thread-index: AcYbJUOjrR8j05uHRsG1B1B8K2TkygE9r/OABhuz4bAGEyvCYA==
  • Thread-topic: Text to XML

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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.