MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / load_document

Function load_document

native/thirdpart/tinyxml2/tixml2ex.h:425–431  ·  view source on GitHub ↗

load XML document from string buffer

Source from the content-addressed store, hash-verified

423
424 // load XML document from string buffer
425 inline std::unique_ptr <XMLDocument> load_document (const std::string & xmlString)
426 {
427 auto doc = std::make_unique <XMLDocument>();
428 if (doc -> Parse (xmlString .c_str()) != XML_SUCCESS)
429 throw XmlException ("error in XML"s);
430 return doc;
431 }
432
433
434 // find the first child element of given element (if any) with (option) element type name

Callers

nothing calls this directly

Calls 3

XmlExceptionClass · 0.85
ParseMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected