#13 XPath-like selectors

open
nobody
Functions (11)
5
2012-10-10
2009-05-11
Anonymous
No

Hello, thank you for the great product!
I think, XPath-like selectors feature would be great:

$attributeValue = $html->find_xpath('element/child@attributeName');
$es = $html->find_xpath('items/item[@type=test]');

Discussion

  • webcgo
    webcgo
    2010-03-10

    嗯,非常赞同。xpath很方便,比css选择器有时候更方便快捷。