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

Method getTopLevelNode

libs/xmlutil/Document.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69Node Document::getTopLevelNode() const
70{
71 std::lock_guard lock(_lock);
72
73 if (!isValid())
74 // Invalid Document, return a NULL node
75 return Node(this);
76
77 return Node(this, _xmlDoc.document_element());
78}
79
80void Document::importDocument(Document& other, Node& importNode)
81{

Callers 3

TEST_FFunction · 0.80
createKeyMethod · 0.80
readFromStreamMethod · 0.80

Calls 3

isValidFunction · 0.85
document_elementMethod · 0.80
NodeClass · 0.70

Tested by

no test coverage detected