Author: bugman Date: Wed Jan 27 20:39:17 2010 New Revision: 10453 URL: http://svn.gna.org/viewcvs/relax?rev=10453&view=rev Log: Created a basic Element.from_xml() method. Modified: branches/bieri_gui/data/data_classes.py Modified: branches/bieri_gui/data/data_classes.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/data/data_classes.py?rev=10453&r1=10452&r2=10453&view=diff ============================================================================== --- branches/bieri_gui/data/data_classes.py (original) +++ branches/bieri_gui/data/data_classes.py Wed Jan 27 20:39:17 2010 @@ -73,6 +73,17 @@ # Return the lot. return text + + + def from_xml(self, super_node): + """Recreate the element data structure from the XML element node. + + @param super_node: The element XML node. + @type super_node: xml.dom.minicompat.Element instance + """ + + # Recreate all the other data structures. + xml_to_object(super_node, self) def is_empty(self):