We need to post some xml documents in db2 database.
I need a part of the message, that structure to go in a column. the rest of the elements will go every one in his column. I didn't find for db2 only 2 ways to work with xml ( an xml column or spread xml simple elements into differents column). i dind't find a way to mix them ( a compound element to a column ).
Thanks, you were very helpful.
Gareth Reakes <[EMAIL PROTECTED]> wrote:
Gareth Reakes <[EMAIL PROTECTED]> wrote:
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:
>
>
>value 1
>value 2
> .....
>value n
>
>
> I want to take this structure and encode it in Base 64.
>
> I serialize this and I want to obtain
>
> Base64 value
>
> 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]
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.