|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Inserting Nodes between Nodes
Hi,
XML novice here with another question. I need to add a XML node like, Code:
<child01>
<child02>
<text></text>
<image>image 1</image>
<image>image 2</image>
</child02>
</child01>
into this node between the ending </child01> and beginning <child01> of the Code:
<child01>
<child02>
<text></text>
<image>image 1</image>
<image>image 2</image>
</child02>
</child01>
<child01>
<child02>
<text></text>
<image>image 1</image>
<image>image 2</image>
</child02>
</child01>
Does this make sense? I guess im looking for a way to say/do... make a new node with the following values and place it between these other two nodes. I still am learning XML but i think this can be done. |
|
#2
|
|||
|
|||
|
woops sorry, my 2nd XML is wrong. here is the correct.
Code:
<child01> <child02> <text></text> <image>image 1</image> <image>image 2</image> </child02> <child02> <text></text> <image>image 1</image> <image>image 2</image> </child02> </child01> <child01> <child02> <text></text> <image>image 1</image> <image>image 2</image> </child02> <child02> <text></text> <image>image 1</image> <image>image 2</image> </child02> </child01> |
|
#3
|
||||
|
||||
|
I am moving this to the PHPCoding forum - you will probably have better luck there.
__________________
life is a game.... Have fun ----------------------------- http://www.phpwomen.org strength in unity PHPCommunity IRC #phpc on freenode |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Inserting Nodes between Nodes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|