Does PHP have a function to retrieve parent/child nodes from an XML/RSS document? This would save having to change code everytime a new XML document is being used.
If that doesn't make sense. Does SimpleXML have a function to retrieve all fields that have 'x' in the field name. For instance, if I know that I want to retrieve a title field from 90% of the documents, but each one is different in structure, is there a simple code or function in PHP that will always pull the title regardless of the document's structure?
For example:
XML 1:
current->title
XML 2:
item->title
XML 3:
items-item->title
XML 4...and so on....
XML 5.....
All have the same node "title", but in different "places". Is there a way to successfully pull these with the same code for each one and not have to rewrite the code each time?
Thanks!