Changeset fee780b in sasview


Ignore:
Timestamp:
Oct 16, 2008 10:57:59 AM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
f8ce013
Parents:
7764b41
Message:

Added namespace on write

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/cansas_reader.py

    rd00f8ff rfee780b  
    603603        doc = xml.dom.minidom.Document() 
    604604        main_node = doc.createElement("SASroot") 
    605         main_node.setAttribute("version", "1.0") 
     605        main_node.setAttribute("version", self.version) 
     606        main_node.setAttribute("xmlns", "cansas1d/%s" % self.version) 
     607        main_node.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance") 
     608        main_node.setAttribute("xsi:schemaLocation", "cansas1d/%s http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d.xsd" % self.version) 
     609         
    606610        doc.appendChild(main_node) 
    607611         
Note: See TracChangeset for help on using the changeset viewer.