in reply to Re: XML data reading/output
in thread XML data reading/output
I got better results with
$doc->findnodes( '//descriptors[@type="CTC"]/descriptor/mainterm/text( +)'
- The three changes I added are:
- an @ for the type attribute
- the /descriptor element (although the xml is not well formed)
- /text() since it appears they desire a text node
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: XML data reading/output
by ikegami (Patriarch) on Sep 04, 2009 at 20:27 UTC |
In Section
Seekers of Perl Wisdom