Fix #4: extra ->children() should show for prefixed root element

This commit is contained in:
Rowan Collins 2017-11-09 21:07:32 +00:00
parent f3238d95c0
commit 6ac7c40043
2 changed files with 29 additions and 20 deletions

View file

@ -1,18 +1,19 @@
SimpleXML object (1 item)
[0] // <movies>
->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']
->children('', true)
->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']