MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / documentElement

Method documentElement

base/poco/XML/src/Document.cpp:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141
142Element* Document::documentElement() const
143{
144 // Skip non-element nodes before the document element
145 Node* pCur = firstChild();
146 while (pCur)
147 {
148 if (dynamic_cast<Element*>(pCur))
149 return static_cast<Element*>(pCur);
150 pCur = pCur->nextSibling();
151 }
152 return 0;
153}
154
155
156Element* Document::createElement(const XMLString& tagName) const

Callers 1

loadMethod · 0.80

Calls 1

nextSiblingMethod · 0.45

Tested by

no test coverage detected