MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / document_element

Method document_element

libs/pugixml/pugixml.cpp:7504–7513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

getTopLevelNodeMethod · 0.80
copyNodesMethod · 0.80

Calls 1

xml_nodeClass · 0.85

Tested by

no test coverage detected