Altova Mailing List Archives

Re: Parsing arbitrary text data into an XML structure

From: "Dimitre Novatchev" <dnovatchev@-----.--->
Date: 1/17/2004 8:38:00 PM
"Alex K. Angelopoulos [MVP]" <aka-at-mvps-dot-org> wrote in message
> > Therefore, you have to parse the text into something initially.
> >
> > In case you are able to extract the necessary data and put it in
> > convenient internal data structures (e.g. dictionary objects each one
> > for a collection of the values for a particular name) then by using an
> > extension object it is trivial to put these values within any desired
> > xml structure.
> OK. That's the general technique I've been using with post-processing -
> using a dictionary, then making an XML fragment with the entries as
> parameter elements containing an id and a value which are generic text.
> It sounds like I just need to dig in and make a parser for appropriately
> "chunking" the standard file formats I want, and putting those into a
> dictionary.  Sound like a rational approach?

Yes. In the case of ini files I vaguely remember that there should have been
a function that does this parsing for you. Check this -- may save you
unnecessary effort.


Dimitre Novatchev.
FXSL developer, XML Insider, -- the home of FXSL


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.