Implementation of IXmlDocument using PugiXML.
More...
#include <PugiXmlImpl.h>
|
void | loadFromString (const std::string &xmlContent) override |
| Loads XML content from a string.
|
|
void | loadFromBuffer (const char *data, size_t size) override |
| Loads XML content from buffer.
|
|
std::shared_ptr< IXmlElement > | getRootElement () const override |
| Gets the root element of the document.
|
|
void | loadFromString (const std::vector< char > &xmlContent) |
| Loads XML content from a vector of characters.
|
|
Implementation of IXmlDocument using PugiXML.
◆ getRootElement()
std::shared_ptr< IXmlElement > musx::xml::pugi::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.
◆ loadFromBuffer()
void musx::xml::pugi::Document::loadFromBuffer |
( |
const char * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inlineoverridevirtual |
Loads XML content from buffer.
- Parameters
-
data | pointer to the XML content. |
size | size of the XML content. |
- Exceptions
-
Implements musx::xml::IXmlDocument.
◆ loadFromString()
void musx::xml::pugi::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.