Appending an DOMDocument (with all child nodes) under an XML Node
126199Feb 8 2006 — edited Mar 21 2007In using PL/SQL XMLDOM package, I need to append the tree structure returned from a function to a newly created structure:
e.g.
New structure
<message_body></message_body>
Needs to have the following indeterminate (varying) structure under it - only the root node <DataSet1> is known:
<DataSet1><Caller>Fred Bloggs</Caller><Tel>0202 777 7777</Tel>
</DataSet1>
Which must give:
<message_body>
<DataSet1><Caller>Fred Bloggs</Caller>
<Tel>0202 777 7777</Tel>
</DataSet1>
</message_body>
Using the XMLDOM's appendchild function does not work.
Would appreciate any help on this.
Thanks,
Tansel