Hi, I don't fully understand what you are asking, but I will have a go at answering. When you say you want to base64 encode an element and its descendants, I assume you mean the text content of them? If so you can call getTextContext. If not you will have to serialize and then encode. For the second part I think you mean "how do I replace an element with a new string (which happens to be the base 64 encoded representation). For that, you get the parent of the element, use the parent to delete the element, and then add the text as a text node.
I have have misunderstood you please feel free to reply. Gareth On Tue, 18 May 2004, Cristina Cioroboiu wrote: > I have a DOMDocument. > I use Xalan to determine a specific section of an DOMDocument (Xpath > determined). I want encode this in Base64 ( the element and probably its > descendants ). > > I have the node now and I want to replace with this new value the corresponding > element (tree) in the original DOMDocument. Can you help me? > > Many thanks. > Cristina > > > > --------------------------------- > 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]