code4craft / xsoup

When jsoup meets XPath.
MIT License
466 stars 151 forks source link

Use Antlr4 for XPath parsing #11

Open code4craft opened 10 years ago

code4craft commented 10 years ago

Now I use TokenQueue and write parser manually, it is difficult to cover all syntax. I did some research on Antlr, and found some grammer file of XPath1.0. I will try to use Antlr4 to parse XPath.

friddle commented 10 years ago

Support! Are you use the antrl4 to parse html or just translate to jsoup like before?

PatrickHuetter commented 8 years ago

You should use Saxon ( saxon.sourceforge.net ) wich supports xpath 3.0. I did some tests with saxon and it's working very good and i couldn't find any xpath method wich isn't supported.