in reply to Get Node Value from irregular XML
# posy /root[1]/part[1]/sect[1]/header[1] # star /*[ name() = "root" and position() = 1 ] /*[ name() = "part" and position() = 1 ] /*[ name() = "sect" and position() = 1 ] /*[ name() = "header" and position() = 1 ] # "content" This is a design XZY document for Project
Just like position() there is also contains() , so you can use
//*[ ( name() = "para" or name() = "header" ) and ( not(descendant::*) ) and ( contains( translate( ., "DESIGN", "design", ), "design" ) ) ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get Node Value from irregular XML (xpather.pl)
by Anonymous Monk on Jun 30, 2013 at 04:41 UTC | |
by Anonymous Monk on Jun 30, 2013 at 05:13 UTC |