MCPcopy Create free account
hub / github.com/axmolengine/axmol / document_element

Method document_element

3rdparty/pugixml/pugixml.cpp:7505–7514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7503 }
7504
7505 PUGI__FN xml_node xml_document::document_element() const
7506 {
7507 assert(_root);
7508
7509 for (xml_node_struct* i = _root->first_child; i; i = i->next_sibling)
7510 if (PUGI__NODETYPE(i) == node_element)
7511 return xml_node(i);
7512
7513 return xml_node();
7514 }
7515
7516#ifndef PUGIXML_NO_STL
7517 PUGI__FN std::string PUGIXML_FUNCTION as_utf8(const pugi::wstring_view& str)

Callers 9

lazyInitMethod · 0.80
flushMethod · 0.80
writeValueMapToFileMethod · 0.80
loadFromXMLMethod · 0.80
addDataFromCacheMethod · 0.80

Calls 1

xml_nodeClass · 0.85

Tested by

no test coverage detected