XPath support for mochiweb's html parser
OTHER License
XPath 1.0 interpreter for mochiweb's html tree See src/test.erl for examples
make
make test
mochiweb_xpath:execute/2
mochiweb_xpath:execute/3
mochiweb_xpath:compile_xpath/1
Tree = mochiweb_html:parse(<<"some html">>),
Results = mochiweb_xpath:execute("/some/xpath", Tree).
mochiweb_xpath_parser:compile_xpath/1
utilize two undocumented functions
in xmerl (xmerl_xpath_parse:parse/1
and xmerl_xpath_scan:tokens/1
).
These functions could change between OTP versions.. I'm using R12B2
text()/parent::
or attribute::*/parent::
)div[last() - 1]
)port match_*
from xmerl_xpath for better axes support