Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I want to have only the ones in which v="YES". how can I search for that in order to have this as output:<?xml version="1.0" encoding="UTF-8" ?> <e> <p id="1" v="YES"> <1>The</1> <2>Bye</2> </p> <p id="2" v="NO"> <1>Border</1> <2>Lamp</2> </p> </e>
<code> <?xml version="1.0" encoding="UTF-8" ?> <e> <p id="1" v="YES"> <1>The</1> <2>Bye</2> </p> </e>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: searching the XML file for certain nodes
by ramrod (Priest) on Mar 10, 2009 at 14:13 UTC | |
|
Re: searching the XML file for certain nodes
by ikegami (Patriarch) on Mar 10, 2009 at 14:05 UTC | |
|
Re: searching the XML file for certain nodes
by mirod (Canon) on Mar 10, 2009 at 14:40 UTC | |
|
Re: searching the XML file for certain nodes
by dHarry (Abbot) on Mar 10, 2009 at 13:29 UTC | |
by Anonymous Monk on Mar 10, 2009 at 14:03 UTC | |
by dHarry (Abbot) on Mar 10, 2009 at 14:32 UTC | |
|
Re: searching the XML file for certain nodes
by Jenda (Abbot) on Mar 10, 2009 at 15:32 UTC | |
by mirod (Canon) on Mar 10, 2009 at 15:45 UTC | |
by Jenda (Abbot) on Mar 10, 2009 at 23:08 UTC | |
by Anonymous Monk on Mar 13, 2009 at 10:57 UTC |