[Zope] Change XML file with zope API

Martijn Faassen m.faassen@vet.uu.nl
Tue, 21 Dec 1999 17:01:34 +0100


Francois-Regis CHALAOUX wrote:
> 
> Hi XZoppiste,
> 
> I'm new in XML but now I can do nice things with the example from Amos in
> xml.org. I bet on this format, it's too fun ...
> Now, I'm trying to change a XML via HTML form; I readed the suggestion at the
> end of the xml.org article and the source code from Builder, Node,
> XMLDocument, ZDOM but I cannot find a way to write the changes I created in
> the DOM tree into the XML data file. Is there an integrate solution ? Should I
> program something by myself ?

If all is well, if you change an XMLDocument by using the DOM, the XML
representation changes along with it automatically. This is because the
XML representation is actually only generated by XMLDocument; the data
is actually stored as a tree (in the object database).

Regards,

Martijn