Thanks to the reference
http://www.xulplanet.com/tutorials/xultu/dommodify.html
I knew that it is possible to add XUL components to XUL window at run-time.
But, I still have no idea about converting the arrangement of XUL components
to a XUL file.
In other words, I want to change the XUL user-interface at run-time, and
save the modified user-interface into a XUL file to be prepared for reusing
in later.
I welcome any idea or references.
The only way of "saving" XUL is to serialize the modified DOM using
XMLSerializer.
Nickolay
You should be able to use the XMLSerializer:
<http://www.xulplanet.com/references/objref/XMLSerializer.html>
<http://developer.mozilla.org/en/docs/XMLSerializer>
Karsten
--
Feel free to correct my English. :)