Author: bugman Date: Sun Jun 22 13:32:54 2008 New Revision: 6386 URL: http://svn.gna.org/viewcvs/relax?rev=6386&view=rev Log: Renamed the xml module to avoid a name clash with the python xml module. Added: 1.3/generic_fns/xml_data_pipe.py - copied unchanged from r6385, 1.3/generic_fns/xml.py Removed: 1.3/generic_fns/xml.py Removed: 1.3/generic_fns/xml.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/xml.py?rev=6385&view=auto ============================================================================== --- 1.3/generic_fns/xml.py (original) +++ 1.3/generic_fns/xml.py (removed) @@ -1,53 +1,0 @@ -############################################################################### -# # -# Copyright (C) 2008 Edward d'Auvergne # -# # -# This file is part of the program relax. # -# # -# relax is free software; you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation; either version 2 of the License, or # -# (at your option) any later version. # -# # -# relax is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with relax; if not, write to the Free Software # -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# # -############################################################################### - -# Module docstring. -"""Module for the creation and parsing of an XML representation of a data pipe.""" - -# Python module imports. -import xml.dom.ext -import xml.dom.minidom - -# relax module imports. -from data import Relax_data_store; ds = Relax_data_store() - - -def read(file, verbosity=1): - """Parse a XML document representation of a data pipe, and load it into the relax data store. - - @param file: The open file object. - @type file: file - @keyword verbosity: A flag specifying the amount of information to print. The higher the value, - the greater the verbosity. - @type verbosity: int - """ - - -def write(file): - """Create a XML document representation of the current data pipe. - - @param file: The open file object. - @type file: file - """ - - # Create the XML document object. - xmldoc = xml.dom.minidom.Document()