Пример #1
0
	void Node::AddTransformText (std::string const & text)
	{
		if (_closed)
			throw XML::Exception ("Cannot add text to a closed XML node");
		// text as a nameless child with Text attribute
		std::auto_ptr<Node> child (new Node (std::string ()));
		Node * newChild = AddChild (child);
		newChild->AddTransformAttribute ("Text", text);
	}