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 ]

> I need to convert some text output of some command

The output (probably) has a known pattern.  If it has, then write a script (Perl, Python, or similar) to parse the text and wrap the pieces that you get from the regular-expression (regexp) engine in XML tags.  Use a scripting language with a potent regexp engine.

If the command's output has no pattern then I'd attack the problem there--try to get the command's output in some pattern.  There's gotta be some recognizable pattern.

 > 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?

-- Mark C. Allman
-- Allman Professional Consulting, Inc.
-- www.allmanpc.com, 617-947-4263

BusinessMsg -- the secure, managed, 100% J2EE/AJAX Enterprise IM/IC solution.

This is a digitally signed message part


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

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