how do i grab text of multiple tags in an xml feed using one xpath expression?
- by Incognito
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]
]