Test 1: accessing single nodes from php
--------- root
Node Name: chapter
Node Type: 1
Num Children: 4
--------- children of root
Node Name: title
Node Type: 1
Num Children: 1
Node Content: Title
Node Name: #text
Node Type: 3
Num Children:
Node Content:
Node Name: para
Node Type: 1
Num Children: 7
Node Name: #text
Node Type: 3
Num Children:
Node Content:
--------- last
Node Name: #text
Node Type: 3
Num Children:
Node Content:
--------- parent
Node Name: chapter
Node Type: 1
Num Children: 4
--------- children of parent
Node Name: title
Node Type: 1
Num Children: 1
Node Content: Title
Node Name: #text
Node Type: 3
Num Children:
Node Content:
Node Name: para
Node Type: 1
Num Children: 7
Node Name: #text
Node Type: 3
Num Children:
Node Content:
--------- creating a new attribute
picture.gif
--------- Get Attribute Node
Node Name: src
Node Type: 2
Num Children: 1
Node Content: picture.gif
--------- Remove Attribute Node
Removed 1 attributes.
--------- attributes of rootnode
Node Name: language
Node Type: 2
Num Children: 1
Node Content: en
--------- children of an attribute
Node Name: #text
Node Type: 3
Num Children:
Node Content: en
--------- Add child to root
Node Name: Silly
Node Type: 1
Num Children: 1
Node Content: Symphony
]>
Title
&sp;
a1b1c1
a2c2
a3b3c3
Symphony
--------- Find element by tagname
Using dom
Node Name: Silly
Node Type: 1
Num Children: 1
Node Content: Symphony
Using elem
Node Name: Silly
Node Type: 1
Num Children: 1
Node Content: Symphony
--------- Unlink Node
Node Name: Silly
Node Type: 1
Num Children: 1
Node Content: Symphony
Node Name: title
Node Type: 1
Num Children: 1
Node Content: Title
Node Name: #text
Node Type: 3
Num Children:
Node Content:
Node Name: para
Node Type: 1
Num Children: 7
Node Name: #text
Node Type: 3
Num Children:
Node Content:
]>
Title
&sp;
a1b1c1
a2c2
a3b3c3
--------- Find element by id
Not implemented
--------- Check various node_name return values
Not needed