MUSX Document Model
|
Interface for an XML document. More...
#include <XmlInterface.h>
Public Member Functions | |
virtual void | loadFromString (const std::string &xmlContent)=0 |
Loads XML content from a string. | |
virtual void | loadFromString (const std::vector< char > &xmlContent)=0 |
Loads XML content from a vector of characters. | |
virtual std::shared_ptr< IXmlElement > | getRootElement () const =0 |
Gets the root element of the document. | |
Interface for an XML document.
|
pure virtual |
Gets the root element of the document.
Implemented in musx::xml::pugi::Document, musx::xml::rapidxml::Document, and musx::xml::tinyxml2::Document.
|
pure virtual |
Loads XML content from a string.
xmlContent | The XML content as a string. |
musx::xml::load_error | if the load fails. |
Implemented in musx::xml::pugi::Document, musx::xml::rapidxml::Document, and musx::xml::tinyxml2::Document.
|
pure virtual |
Loads XML content from a vector of characters.
xmlContent | The XML content as a vector of characters. |
musx::xml::load_error | if the load fails. |
Implemented in musx::xml::pugi::Document, musx::xml::rapidxml::Document, and musx::xml::tinyxml2::Document.