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.
https://sbml.org/software/libsbml
Other
41 stars 28 forks source link

fail with math and multi #307

Closed skeating closed 1 year ago

skeating commented 1 year ago

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

import libsbml mathml = ( '<?xml version="1.0" encoding="UTF-8"?>' '<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