mailr6525 - /1.3/data/__init__.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 28, 2008 - 20:49:
Author: bugman
Date: Sat Jun 28 20:11:48 2008
New Revision: 6525

URL: http://svn.gna.org/viewcvs/relax?rev=6525&view=rev
Log:
Wrote the Relax_data_store.xml_read() method.


Modified:
    1.3/data/__init__.py

Modified: 1.3/data/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/data/__init__.py?rev=6525&r1=6524&r2=6525&view=diff
==============================================================================
--- 1.3/data/__init__.py (original)
+++ 1.3/data/__init__.py Sat Jun 28 20:11:48 2008
@@ -170,6 +170,18 @@
         @type verbosity:    int
         """
 
+        # Create the XML document from the file.
+        doc = xml.dom.minidom.parse(file)
+
+        # Get the relax node.
+        relax_node = doc.childNodes[0]
+
+        # Get the relax version of the XML file.
+        relax_version = str(relax_node.getAttribute('version'))
+
+        # Fill the pipe.
+        self[self.current_pipe].xml_read_element(relax_node)
+
 
     def xml_write(self, file):
         """Create a XML document representation of the current data pipe.




Related Messages


Powered by MHonArc, Updated Sat Jun 28 22:20:13 2008