Replacing Node and ChildNodes with xml datas.
Brought to you by:
bs_php,
nigelswinson
From: Eric W. <er...@if...> - 2003-01-28 21:31:54
|
Hello,<br> <br> I want to replace the content of a node and its childs node with a new xml content.<br> <br> For example :<br> <?Process_Instruction test="© All right reserved" ?> <br> <AAA FOO="bar"> ,,1,, ..1.. <![CDATA[ bla bla newLine blo blo ]]> <br> <BB>Step 1. Insert new node</BB> <br> <BBB FOO="bar"> <br> <CCC>Step 1. Append new node</CCC> ..2.. <br> <CCC>Step 2. Append new node</CCC> <br> <CCC>Step 3. Append new node</CCC> <br> </BBB> "Some new text"..3.. <br> <DDD>Replaced last BB</DDD> <br> <CC/> ..4.. <br> </AAA><br> <br> I would replace /AAA/BBB[@FOO='bar'] by xml content ..<br> How can i do ?<br> <br> ReplaceData method just insert datas but doesn't replace subchilds...<br> please help me<br> Thanks<br> Eric<br> _____________________________________________________________________ Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France |