How to apply wild cards on Attribute Value?
XML / XSL
2
Posts
2
Posters
0
Views
1
Watching
-
-
<BookStore> <Book> <Page pname="abcded"/> <Page pname="def"/> <Page pname="ghi"/> <page pname="acd"/> <page pname="cad"/> <page pname="amd"/> </Book> </BookStore> How can I select all page elements (xpath query) having pname starting with "a" Thanks.
Try
//Page[starts-with(@pname, 'a')]
(presuming it isPage
, notpage
)Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p