Changeset 76cd1ae in sasview for src/sans/dataloader/readers/xml_reader.py
- Timestamp:
- Jan 14, 2014 3:53:36 PM (11 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 16bd5ca
- Parents:
- 083e993
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/dataloader/readers/xml_reader.py
r17a25d4 r76cd1ae 17 17 18 18 class XMLreader(): 19 20 xml = None 21 xmldoc = None 22 xmlroot = None 23 schema = None 24 schemadoc = None 19 25 20 26 def __init__(self, xml = None, schema = None, root = None): … … 47 53 self.xmlroot = self.xmldoc.getroot() 48 54 except Exception: 49 ##!TODO: raise exception if no xml is passed to this function 50 print "No xml file was found!" 55 self.xml = None 56 self.xmldoc = None 57 self.xmlroot = None 51 58 52 59 def setSchema(self, schema): … … 55 62 self.schemadoc = etree.parse(self.schema, parser = parser) 56 63 except Exception: 57 ##!TODO: raise exception if no schema is passed to this function58 print "No schema file was found!"64 self.schema = None 65 self.schemadoc = None 59 66 60 67 def validateXML(self):
Note: See TracChangeset
for help on using the changeset viewer.