load XML document from string buffer
| 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 |
nothing calls this directly
no test coverage detected