Example #1
0
	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();
	}
Example #2
0
	DomElement DomNode::to_element() const
	{
		if (is_element())
			return DomElement(impl);
		return DomElement();
	}
Example #3
0
	DomElement DomDocument::create_element_ns(
		const DomString &namespace_uri,
		const DomString &qualified_name)
	{
		return DomElement(*this, qualified_name, namespace_uri);
	}
Example #4
0
	DomElement DomDocument::create_element(const DomString &tag_name)
	{
		return DomElement(*this, tag_name);
	}