|
libSBML C++ API
libSBML 5.10.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... | |
| char * | writeMathMLToString (const ASTNode_t *node) |
| Writes the given ASTNode_t (and its children) to a string as MathML, and returns the string. More... | |
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 | a XMLNamespaces_t object containing namespaces that are considered active during the read e.g. an L3 package namespace |
NULL is returned if the given string is NULL or invalid. | char* writeMathMLToString | ( | const ASTNode_t * | node | ) |
Writes the given ASTNode_t (and its children) to a string as MathML, and returns the string.
| node | the root of an AST to write out to the stream. |
NULL is returned if the given argument is NULL.