|
libSBML C++ API
5.18.0
|
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... | |
| void | setSBMLDefinitionURLs (XMLInputStream &stream) |
| std::string | writeMathMLToStdString (const ASTNode *node) |
| std::string | writeMathMLToStdString (const ASTNode *node, SBMLNamespaces *sbmlns) |
| char * | writeMathMLToString (const ASTNode *node) |
| 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. 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 | 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. | void setSBMLDefinitionURLs | ( | XMLInputStream & | stream | ) |
| std::string writeMathMLToStdString | ( | const ASTNode * | node | ) |
| std::string writeMathMLToStdString | ( | const ASTNode * | node, |
| SBMLNamespaces * | sbmlns | ||
| ) |
| char* writeMathMLToString | ( | const ASTNode * | node | ) |
| 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.