libSBML C++ API
libSBML 5.13.0 C++ API
|
Utilities for reading and writing MathML to/from text strings. More...
Functions | |
ASTNode_t * | readMathMLFromString (const char *xml) |
Reads the MathML from the given XML string, constructs a corresponding abstract syntax tree, and returns a pointer to the root of the tree. More... | |
ASTNode_t * | readMathMLFromStringWithNamespaces (const char *xml, XMLNamespaces_t *xmlns) |
Reads the MathML from the given XML string, constructs a corresponding abstract syntax tree, and returns a pointer to the root of the tree. More... | |
std::string | writeMathMLToStdString (const ASTNode *node) |
char * | writeMathMLToString (const ASTNode *node) |
Utilities for reading and writing MathML to/from text strings.
ASTNode_t* readMathMLFromString | ( | const char * | xml | ) |
Reads the MathML from the given XML string, constructs a corresponding abstract syntax tree, and returns a pointer to the root of the tree.
xml | a string containing a full MathML expression |
NULL
is returned if the given string is NULL
or invalid. ASTNode_t* readMathMLFromStringWithNamespaces | ( | const char * | xml, |
XMLNamespaces_t * | xmlns | ||
) |
Reads the MathML from the given XML string, constructs a corresponding abstract syntax tree, and returns a pointer to the root of the tree.
xml | a string containing a full MathML expression |
xmlns | an XMLNamespaces object containing namespaces that are considered active during the read. (For example, an SBML Level 3 package namespace.) |
NULL
is returned if the given string is NULL
or invalid. std::string writeMathMLToStdString | ( | const ASTNode * | node | ) |
char* writeMathMLToString | ( | const ASTNode * | node | ) |