Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » Bug in libsbml?
Show: Today's Posts  :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
AuthorTopic
Colin Gillespie


Posts: 23
Registered:
June 2004
Bug in libsbml? 17 Apr '06 00:49

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

      
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:Bug in libsbml?
Next Topic:Cannot load python binding module
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.