DomElement DomDocument::get_document_element() { DomNode cur = get_first_child(); while (!cur.is_null()) { if (cur.is_element()) return cur.to_element(); cur = cur.get_next_sibling(); } return DomElement(); }
DomElement DomNode::to_element() const { if (is_element()) return DomElement(impl); return DomElement(); }
DomElement DomDocument::create_element_ns( const DomString &namespace_uri, const DomString &qualified_name) { return DomElement(*this, qualified_name, namespace_uri); }
DomElement DomDocument::create_element(const DomString &tag_name) { return DomElement(*this, tag_name); }