[antlr-interest] antlr suitable for xml languages? (like bpel and are there existing grammaires)

Dimitrios Kolovos dskolovos at gmail.com
Wed Dec 14 06:25:29 PST 2005


Hi Dominik,

I would personally recommend going the SAX-DOM route. With libraries 
such as JDOM or dom4j you actually get the AST (in that case DOM) for 
free. Moreover, you can specify a W3C Schema or DTD to perform 
validation on your input. Finally, you can use XPath (e.g. Jaxen) to 
query your DOM.

Since the problem of parsing and managing XML documents has been solved 
in its general case - from stable and sophisticated libraries such as 
those mentioned above - I see no reason to re-implment the wheel and 
construct your own XML parser with ANTLR (espacially if you start 
thinking about escaping characters, different encodings etc).

Just my two pence,
Dimitrios

SOA Work wrote:

>  
>
> Hi,
>
> im new to antlr (to parsing at all for being honest).
>
> I am planning to create a parser for the bpel language. Now my 
> questions (as mentioned in the subject):
>
> 1. can i parse xml languages like bpel, wsdl, xhtml or soap messages 
> with antlr? or is it more simple just to use some xml parsers?
>
> 2. if using antlr for parsing bpel, does somebody know existing 
> grammair files for this language?
>
>  
>
> thx a lot in advance
>
> greetings
>
> dominik
>
>
>
> Verschicken Sie romantische, coole und witzige Bilder per SMS!   
> Jetzt bei WEB.DE FreeMail: *http://f.web.de/?mc=021193* 
> <http://f.web.de/?mc=%21%0A%20021193>  
>


More information about the antlr-interest mailing list