void xmlDocument::clear()
		{
			clearInfo();
			clearRoot();
			mLine = 0;
			mCol = 0;
		}
Esempio n. 2
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;
		}
Esempio n. 4
0
	ElementPtr Document::createRoot(const std::string& _name)
	{
		clearRoot();
		mRoot = new Element(_name, 0, ElementType::Normal);
		return mRoot;
	}