Recursively iterating through XML document elements but only for certain tags...?
I have a HUGE XML document that I need to parse for only specific pieces of data. The XML has your standard structure any XML document has, but this specific document has a <page> element that I need to parse for the contents of. What I mean is that I need to create some kind of recursive iteration that can load the entire document, scan for and output the contents of everything between the opening and closing "page" tags throughout the entirety of this file.
That said, how would one extract the contents between an opening and closing tag specified by the developer using SimpleXMLIterator, recursively? It's probably something simple for most of you, but I currently find myself a bit bejeweled at this task right now and I think it may be due to having had only 4 or 5 hours of rest for the past 3 days...
If anyone has any examples or starting points that they could provide that I could get started with, you would be in my best prayers. Have any of you even ever done this before?