aboutsummaryrefslogtreecommitdiff
path: root/src/old/tests/xmlrepltest.cpp
blob: 966770584762a7d6428fe37746c61cce2546e624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "xmlwriter.h"

int main()
{
	printf("Testing Xml Replacement...\n");
	XmlDocument w;

	w.addNode("text");
	w.setContent("this text is before the node.  ");
	w.addNode("keepme", "This one we keep...", true );
	w.setContent("this text is after.");
	w.addNode("deleteme", "This one we don't...", true );
	w.setContent("this is last..." );
	w.closeNode();

	//XmlWriter::writeNode( stdout, w.getRoot(), 0, NULL );

	printf("\n\n");

	//XmlNode *xNode = w.getRoot()->detatchNode( 1 );

	//XmlWriter::writeNode( stdout, w.getRoot(), 0, NULL );

	printf("\n\n");

	//XmlWriter::writeNode( stdout, xNode, 0, NULL );

	printf("\n\n");

	return 0;
}