Hello I'm trying to write simple framework to generate XUL sites dynamically. I have SOAP server on PHP and SOAP client in Javascript under FF 1.0. I have a problem with sending XUL source throug the SOAP protocol. SOAP throws errors when I'm trying to return any kind of XML in remote functions. How can I encapsulate XUL in SOAP? I think it should be some coding functions or serialization but I don't know which components I can use.