in reply to Extracting specific childnodes
Thanks in advance.-
Hi madbee r:)
I already gave this answer in Re: Counting number of child nodes based on element value (typos)/Re: Having trouble with siblings/Re: Get Node Value from irregular XML (xpather.pl) but here you go
my $xpath_Include_LI_Title = q{ //Article/Main/Sect/*[ ( name()="H3" or name()="H4" ) and contains(.,"Include" ) ]//LI_Title };
If you only want the LI_Title instead of the LI, just copy/paste that tagname :)
xpath is quite fond of whitespace, so merely because cmd.exe doesn't seem to like it, no reason for you to avoid it
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting specific childnodes (xpath whitespace)
by madbee (Acolyte) on Jul 06, 2013 at 04:13 UTC | |
by Anonymous Monk on Jul 06, 2013 at 11:57 UTC | |
by Anonymous Monk on Jul 06, 2013 at 22:42 UTC | |
by madbee (Acolyte) on Jul 07, 2013 at 04:50 UTC |