B
Ben Jessel
All,
I have an rss feed:
<rss>
<channel>
<item>
<title>
some title
</title>
<link>
some link
</link>
<description>
some description
</description>
</item>
<item>
<title>
my
</title>
<link>
some link
</link>
<description>
test
</description>
</item>
<webMaster>[email protected]</webMaster>
</channel>
</rss>
How could I write an xPath statement that would return me all my data
apart from <item> clauses that don't meed a specific critera?
I'd like the output to be:
I've tried
"//item[( contains(title,'my') or contains(description,'test') )]"
hoping that it would return:
<rss>
<channel>
<item>
<title>
my
</title>
<link>
some link
</link>
<description>
test
</description>
</item>
<webMaster>[email protected]</webMaster>
</channel>
</rss>
However it only returns the matching <item>.
I've tried reading trhought the specification, but I really need a
real-world example to help me!
Thanks,
Ben
I have an rss feed:
<rss>
<channel>
<item>
<title>
some title
</title>
<link>
some link
</link>
<description>
some description
</description>
</item>
<item>
<title>
my
</title>
<link>
some link
</link>
<description>
test
</description>
</item>
<webMaster>[email protected]</webMaster>
</channel>
</rss>
How could I write an xPath statement that would return me all my data
apart from <item> clauses that don't meed a specific critera?
I'd like the output to be:
I've tried
"//item[( contains(title,'my') or contains(description,'test') )]"
hoping that it would return:
<rss>
<channel>
<item>
<title>
my
</title>
<link>
some link
</link>
<description>
test
</description>
</item>
<webMaster>[email protected]</webMaster>
</channel>
</rss>
However it only returns the matching <item>.
I've tried reading trhought the specification, but I really need a
real-world example to help me!
Thanks,
Ben