sbmlteam / libsbml

LibSBML is a native library for reading, writing and manipulating files and data streams containing the Systems Biology Markup Language (SBML). It offers language bindings for C, C++, C#, Java, JavaScript, MATLAB, Perl, PHP, Python, R and Ruby.

Home Page:https://sbml.org/software/libsbml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fail with math and multi

skeating opened this issue · comments

when an ASTNode contains a multi:xmlns, it gets removed by our API. The example is:

import libsbml
mathml = (
''
'<math xmlns="http://www.w3.org/1998/Math/MathML" '
'xmlns:multi="http://www.sbml.org/sbml/level3/version1/multi/version1">'
' a '
''
)
assert 'xmlns:multi' in mathml
ast_node = libsbml.readMathMLFromString(mathml)
new_mathml = libsbml.writeMathMLToString(ast_node)
print(new_mathml)
assert 'xmlns:multi' in new_mathml # FAIL