serializing DOM object

Daniel Dittmar daniel.dittmar at sap.com
Tue May 14 09:24:29 EDT 2002


> I want to use Java to save the DOM object to a blob field in mysql.
> Then, using python to open it later.  Is it possible?  Someone told
> me as long as I need to serialize the DOM object, it is doable.  If
> anybody have this experience, would you please share with me.

This depends an the meaning of 'serialize'. If this is the Java serialize,
then it will be difficult or impossible to parse this format. If you mean
'write out XML', then it should be quite simple to use the Python xml
modules to parse the XML back into a DOM.

Daniel






More information about the Python-list mailing list