Dear All, I have a simple SBML model <sbml xmlns="http://www.sbml.org/sbml/level2" xmlns:math="http://www.w3.org/1998/Math/MathML" level="2" version="1"> <model id="MyModel"> </model> </sbml> Now using Python I do: sbml='''<sbml xmlns="http://www.sbml.org/sbml/level2" xmlns:math="http://www.w3.org/1998/Math/MathML" level="2" version="1"> <model id="MyModel"> </model> </sbml>''' import libsbml read = libsbml.SBMLReader() read.setSchemaValidationLevel(libsbml.XML_SCHEMA_VALIDATION_FULL) d = read.readSBMLFromString(sbml) print d.toSBML() <sbml xmlns="http://www.sbml.org/sbml/level2" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:math="http://www.w3.org/1998/Math/MathML" level="2" version="1"> <model id="MyModel"/> </sbml> i.e. it prints out the MathML namespace twice, giving an invalid model. (Using libsbml 2.3.4 under linux) Thanks Colin
Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)