My problem with the elements was the opposite of my earlier problem. I was trying to fetch elements that were not namespaced, or so I thought. I had overlooked the fact that there was a default namespace with no prefix in the document. It took me a while to find the fact that there was…
It was my colleague Dynom who saved the day for me. He pointed me towards the second optional parameter of the attributes() method of the SimpleXMLElement object. Given the following snippet (within a larger snippet): I was using the first parameter of attributes (the namespace) to let SimpleXML know from which namespace I wanted to…