Fix #11: Use DOM to determine actual namespace of current element
This commit is contained in:
parent
16622d96f3
commit
627c7d5685
5 changed files with 62 additions and 36 deletions
11
tests/dump-output/issue-11
Normal file
11
tests/dump-output/issue-11
Normal file
|
@ -0,0 +1,11 @@
|
|||
SimpleXML object (1 item)
|
||||
[
|
||||
Element {
|
||||
Name: 'notinnamespace'
|
||||
String Content: ''
|
||||
Content in Namespace test
|
||||
Namespace URI: 'http://example.com'
|
||||
Children: 0
|
||||
Attributes: 1 - 'isinnamespace'
|
||||
}
|
||||
]
|
2
tests/input/issue-11.xml
Normal file
2
tests/input/issue-11.xml
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" standalone="yes"?>
|
||||
<notinnamespace xmlns:test="http://example.com" test:isinnamespace="true" />
|
4
tests/tree-output/issue-11
Normal file
4
tests/tree-output/issue-11
Normal file
|
@ -0,0 +1,4 @@
|
|||
SimpleXML object (1 item)
|
||||
[0] // <notinnamespace>
|
||||
->attributes('http://example.com')
|
||||
->isinnamespace
|
Loading…
Add table
Add a link
Reference in a new issue