Hey,
        in that case, take a look at the serializer (DOMWriter). Write in
to memory, encode it. Take original, delete all its child nodes and add
the text node you created when encoding. Be aware of issues like namespace
normalization (take a look at normalize document) if you are are going to
process the document before expanding the nodes.

        On a side issue, this does seem slightly evil. Why do you have to
do it?

Gareth



On Wed, 19 May 2004, Cristina Cioroboiu wrote:

> Thanks Gareth.
>
> I have this structure  as partof my main document:
>
> <Original>
>         <Node1> value 1 </Node1>
>         <Node2> value 2 </Node2>
>         .....
>         <Noden> value n <Node n>
> </Original>
>
> I want to take this structure and encode it in Base 64.
>
> I serialize this and I want to obtain
> <Original>
>      Base64 value
> </Original>
> as a part of my main document.
>
> After some processing I want to decode and  come back to my old document structure.
>
> My problem is this replace of the structure in the main document.
>
>
>
> ---------------------------------
> Do you Yahoo!?
> SBC Yahoo! - Internet access at a great low price.

-- 
Gareth Reakes, Managing Director      Parthenon Computing
+44-1865-811184                  http://www.parthcomp.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to