Implementation of IXmlDocument using tinyxml2.
More...
#include <TinyXmlImpl.h>
|
void | loadFromString (const std::string &xmlContent) override |
| Loads XML content from a string.
|
|
void | loadFromString (const std::vector< char > &xmlContent) override |
| Loads XML content from a vector of characters.
|
|
std::shared_ptr< IXmlElement > | getRootElement () const override |
| Gets the root element of the document.
|
|
Implementation of IXmlDocument using tinyxml2.
◆ getRootElement()
std::shared_ptr< IXmlElement > musx::xml::tinyxml2::Document::getRootElement |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the root element of the document.
- Returns
- A shared pointer to the root element, or nullptr if the document is empty.
Implements musx::xml::IXmlDocument.
◆ loadFromString() [1/2]
void musx::xml::tinyxml2::Document::loadFromString |
( |
const std::string & |
xmlContent | ) |
|
|
inlineoverridevirtual |
Loads XML content from a string.
- Parameters
-
xmlContent | The XML content as a string. |
- Exceptions
-
Implements musx::xml::IXmlDocument.
◆ loadFromString() [2/2]
void musx::xml::tinyxml2::Document::loadFromString |
( |
const std::vector< char > & |
xmlContent | ) |
|
|
inlineoverridevirtual |
Loads XML content from a vector of characters.
- Parameters
-
xmlContent | The XML content as a vector of characters. |
- Exceptions
-
Implements musx::xml::IXmlDocument.