void xmlDocument::clear() { clearInfo(); clearRoot(); mLine = 0; mCol = 0; }
void Document::clear() { clearDeclaration(); clearRoot(); mLine = 0; mCol = 0; }
xmlNodePtr xmlDocument::createRoot(const std::string & _name) { clearRoot(); mRoot = new xmlNode(_name, 0, XML_NODE_TYPE_NORMAL); return mRoot; }
ElementPtr Document::createRoot(const std::string& _name) { clearRoot(); mRoot = new Element(_name, 0, ElementType::Normal); return mRoot; }