how do i grab text of multiple tags in an xml feed using one xpath expression?
Posted
by
Incognito
on Stack Overflow
See other posts from Stack Overflow
or by Incognito
Published on 2010-12-31T05:07:24Z
Indexed on
2010/12/31
12:53 UTC
Read the original article
Hit count: 195
Im trying to parse an xml feed that looks something like this:
<item>
<title>item title</title>
<link>item link</link>
<description>item description</description>
</item>
I'm trying to find an xpath expression that will retrieve all the details of each item so that each item in the feed is contained within its own array or grouped in some way. I tried using //item/* but the tags are not grouped, although they are correctly ordered.
Is there anyway of doing that?
edit:
[
[title1, link1, desc1],
[title2, link2, desc2],
[title3, link3, desc3]
]
© Stack Overflow or respective owner