Oddly, the XML namespace spec leaves un-prefixed attributes as undefined behaviour, rather than inheriting the default namespace. While fixing this, I've also made most of the output ignore local aliases, because everyone should be using namespace URIs anyway.
19 lines
352 B
Text
19 lines
352 B
Text
SimpleXML object (1 item)
|
|
[0] // <test:movies>
|
|
->children('https://github.com/IMSoP/simplexml_debug')
|
|
->movie[0]
|
|
->title[0]
|
|
->characters[0]
|
|
->character[0]
|
|
->name[0]
|
|
->actor[0]
|
|
->character[1]
|
|
->name[0]
|
|
->actor[0]
|
|
->plot[0]
|
|
->great-lines[0]
|
|
->line[0]
|
|
->rating[0]
|
|
['type']
|
|
->rating[1]
|
|
['type']
|