Given this xml:
Sample Xpath to use with PHP SimpleXML (doesn't work)
The first part of the xpath expression works fine. It locates the correct event node based on the supplied id tag. The part I'm having trouble with is then finding any attribute in the event tag that has an attribute of url. I've done some googling and can't seem to find the right syntax to get the attribute text from an unknown host node.
In short this is what the xpath expression should do:
In a given event tag return all url attributes found in any of events decedents.
Any suggestions on how to accomplish this functionality?