Highlighted

The use of serialize

kc

11-11-2008

Hi all,



I am trying to use the serialize xpath function to serialize an xml variable to a string, but nothing is stored in the string:



/process_data/myString = serialize(/process_data/myXmlVar/*, true())



What am I doing wrong?



Thanks in advance.



Sincerely

Kim

Replies

Highlighted

Ryan_Lunka

12-12-2008

Do you need the /*? I think I've serialized an XML document without it.



Ryan D. Lunka

Cardinal Solutions Group

rlunka@cardinalsolutions.com
Highlighted

Jasmin_Charbonn

12-12-2008

Yes you can. It just depends what xml you want to serialize. The serialize function doesn't care as long as it's valid xml.



Jasmin