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.
15 lines
294 B
Text
15 lines
294 B
Text
SimpleXML object (1 item)
|
|
[
|
|
Element {
|
|
Namespace: 'http://example.com'
|
|
(Default Namespace)
|
|
Name: 'Foo'
|
|
String Content: '
|
|
|
|
'
|
|
Content in Namespace 'http://example.com'
|
|
Children: 1 - 1 'MaskingChildElement'
|
|
Content in Null Namespace
|
|
Attributes: 1 - 'InvisibleAttribute'
|
|
}
|
|
]
|