[antlr-interest] XML parsing

Matt Benson gudnabrsam at yahoo.com
Tue Jun 10 08:09:05 PDT 2003


I am involved with a project of which one of the most
daunting components is to take a large XML document
and insert its contents in a relational database.  The
structure of the document allows for repetitions of
many of its elements, and may include the same types
of elements with different meanings based on context. 
I was trying to decide whether something like XSLT
might help with this problem, when I was struck by the
idea that a recursive-descent parser might be the
thing to use.  This way we could specify structure by
use of rules, and Antlr's use of parameters and return
values could allow us to specify a contextual
interpretation to an element, and receive a value by
which to associate it with a parent relational
database record.  Does this sound like a good
approach?  Can anyone offer a better alternative?

TIA,
Matt

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list