|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] XPath parser in JavaKevin Fandre kfandre at gmail.comTue Oct 10 10:32:10 PDT 2006
There are few xpath javacc/jjtree grammars floating around that you can use to generate your own parser. I used one a few years back to build an xpath -> object-relational sql translater. If you dont find one, and your interested, email mail me and I'll send you a grammar. -Kevin On 10/10/06, Frans Englich <http://x-query.com/mailman/listinfo/talk> wrote: > > Real-To: Frans Englich <http://x-query.com/mailman/listinfo/talk> > > On Tuesday 10 October 2006 11:45, Jonathan Robie wrote: > > David Carlisle wrote: > > >> Rather, I want the XPath parser to return an array or a > > >> list or tree or anything where I can traverse step by step. > > > > > > There are xpath and xquery java parsers available from the working > group > > > pages (maintained by Scott Boag, mainly) > > > http://www.w3.org/2005/qt-applets/xqueryApplet.html > > > This builds an in memory tree of the expression with methods to dump > it > > > as indented text or as XML. > > > I use it as the parser for xq2xml > > > http://monet.nag.co.uk/xq2xml/index.html > > > > These parsers are kept up to date with the latest drafts of XPath 2.0 > > and XQuery 1.0, and the text description in the specifications is > > generated from the same grammar as the parser, all the examples in the > > specifications (including the use cases) are tested with them, and they > > have had wide review. So there are real advantages to using them. Unless > > you need an XPath 1.0 parser. > > Even, the testing task force uses Scott's parser to check tests for parser > errors, so its indirectly tested through the XQuery Test Suite. > > > Cheers, > > Frans > _______________________________________________ > http://x-query.com/mailman/listinfo/talk > http://x-query.com/mailman/listinfo/talk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20061010/2f2ee168/attachment.htm
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






