Thanks to Martijn Pieters <mj@digicool.com>, I can sent out any sub-tree of an xml document now. The problem is : when toXML apply to the xmldocument root, it gives the <?xml ?> tag also. How can I prevent this? or How can I detect if it is the root so the dtml method does not insert the <? xml tag? Now, I still got the following: 1. embed the <dtml-> tags inside the xmlDocument. and make the toXML render them before making it a xml file. However, the currently dtml-var does not accept ending / or </dtml-var>, that is the problem 2. make other zope objects response to toXML which I think since we can export them in xml format, it is possible, isn't it? 3. XMLDocument does not receive utf-8 encoding correctly. 4. Zcatalogue does not like utf-8 encoding especially chinese, japanese, korean, ...
----- Original Message ----- From: Sin Hang Kin <iekentsin@infoez.com.mo>
1. embed the <dtml-> tags inside the xmlDocument. and make the toXML render them before making it a xml file. However, the currently dtml-var does not accept ending / or </dtml-var>, that is the problem
This should be in the Collector. Sorry, I can't help with your other items. Cheers, Evan @ digicool
2. make other zope objects response to toXML which I think since we can export them in xml format, it is possible, isn't it?
I've done that building my own class. I want to work on it a little more before upload to the Zope site, but if you want it now tell me and I'll email it to you. The class has two methods, toXML and fromXML, which allow to export/import objects in XML with explicit control over the process and following an OO aproach. It's currently useful. David
participants (3)
-
al028823ļ¼ alumail.uji.es -
Evan Simpson -
Sin Hang Kin