|
libSBML C++ API
5.20.5
|
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. | |
| 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. | |
| char * | writeMathMLToString (const ASTNode_t *node) |
| Writes the given AST node (and its children) to a string as MathML, and returns the string. | |
| char * | writeMathMLWithNamespaceToString (const ASTNode_t *node, SBMLNamespaces_t *sbmlns) |
| Writes the given AST node (and its children) to a string as MathML, and returns the string. | |
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.Reads the MathML from the given XML string, constructs a corresponding abstract syntax tree, and returns a pointer to the root of the tree.
| 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.Reads the MathML from the given XML string, constructs a corresponding abstract syntax tree, and returns a pointer to the root of the tree.
| char * writeMathMLToString | ( | const ASTNode_t * | node | ) |
Writes the given AST node (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.| char * writeMathMLWithNamespaceToString | ( | const ASTNode_t * | node, |
| SBMLNamespaces_t * | sbmlns | ||
| ) |
Writes the given AST node (and its children) to a string as MathML, and returns the string.
| node | the root of an AST to write out to the stream. |
| sbmlns | the SBML namespace to be used |
NULL is returned if the given argument is NULL.Writes the given AST node (and its children) to a string as MathML, and returns the string.