XML parsing (was RE: [antlr-interest] Places where Antlr can be
used ....)
Scott Stanchfield
scott at javadude.com
Fri Jun 24 20:32:27 PDT 2005
> XPA tree transformation works by simply bringing XML into an
> AST and do the processing using ordinary tree transformation
> rules. Mapping of XML element to AST type is done using the
> TokenTypes.txt file which is needed to parse the XML into an AST.
Ah. I think that should work pretty much as is in ANTXR though I haven't
tried it.
> Have you evaluated bringing this to 3.0?
Not yet. I want to get this out first before I even look at 3.0.
> > What I *really* need to do is an XML Schema->ANTXR grammar
> generator...
>
> That would be cool and very useful to consume XML into Java,
> yes. Cool idea. Might be fun as well. Even though I think DTD
> still is much more common than Schema. What about an ANTLR
> DTD parser? (Maybe even antlr 3.0?)
I want to be able to generate a grammar from either a schema or DTD.
Later,
-- Scott
More information about the antlr-interest
mailing list