libSBML Perl API  5.20.5
Loading...
Searching...
No Matches
MathML.cpp File Reference

Utilities for reading and writing MathML to/from text strings. More...

Include dependency graph for MathML.cpp:

Functions

ASTNode_treadMathMLFromString (const char *xml)
ASTNode_treadMathMLFromStringWithNamespaces (const char *xml, XMLNamespaces_t *xmlns)
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)

Detailed Description

Utilities for reading and writing MathML to/from text strings.

Author
Ben Bornstein

Function Documentation

◆ readMathMLFromString()

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.

◆ readMathMLFromStringWithNamespaces()

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.

◆ setSBMLDefinitionURLs()

void setSBMLDefinitionURLs ( XMLInputStream & stream)

◆ writeMathMLToStdString() [1/2]

std::string writeMathMLToStdString ( const ASTNode * node)

◆ writeMathMLToStdString() [2/2]

std::string writeMathMLToStdString ( const ASTNode * node,
SBMLNamespaces * sbmlns )

◆ writeMathMLToString()

char * writeMathMLToString ( const ASTNode * node)

◆ writeMathMLWithNamespaceToString()

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.