Skip to content

Commit 96c0974

Browse files
committed
Update README to note Xpath is in better shape, and is ready for beta release
1 parent 64af697 commit 96c0974

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ InvalidAttributeNameException - An attribute name was found that contained an in
449449
XPath
450450
-----
451451

452-
**XPath support is still in Alpha phase.**
452+
**XPath support is in Beta phase.**
453453

454454

455455
Basic XPath support has been added, which supports searching, attribute matching, positions, indexes, some functions, most axes (such as parent::).
@@ -470,7 +470,12 @@ Find any div with attribute name="Cheese" , and return the second direct child w
470470
Find and return any tag which contains the inner text, normalized for whitespace, of "Banana"
471471

472472

473-
More will be added, soon.
473+
Find and return any tag under a div containing a class "purple-cheese"
474+
475+
//div/*[ contains( concat( ' ', @class, ' ' ), 'purple-cheese' ) ]
476+
477+
478+
More will be added. If you have a needed xpath feature not currently supported (you'll know by parse exception raised), please open an issue and I will make it a priority!
474479

475480

476481
IndexedAdvancedHTMLParser

README.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ InvalidAttributeNameException - An attribute name was found that contained an in
472472
XPath
473473
-----
474474

475-
**XPath support is still in Alpha phase.**
475+
**XPath support is in Beta phase.**
476476

477477

478478
Basic XPath support has been added, which supports searching, attribute matching, positions, indexes, some functions, most axes (such as parent::).
@@ -493,7 +493,12 @@ Find any div with attribute name="Cheese" , and return the second direct child w
493493
Find and return any tag which contains the inner text, normalized for whitespace, of "Banana"
494494

495495

496-
More will be added, soon.
496+
Find and return any tag under a div containing a class "purple-cheese"
497+
498+
//div/\*[ contains( concat( ' ', @class, ' ' ), 'purple\-cheese' ) ]
499+
500+
501+
More will be added. If you have a needed xpath feature not currently supported (you'll know by parse exception raised), please open an issue and I will make it a priority!
497502

498503

499504
IndexedAdvancedHTMLParser

0 commit comments

Comments
 (0)