Revision: | 1.1 |
Committed: | Wed Jan 24 19:33:57 2001 UTC (23 years, 9 months ago) by ab11 |
Branch: | MAIN |
Log Message: | XMLFormatter Test class |
# | Content |
---|---|
1 | #include <iostream.h> |
2 | #include "XMLFormatter.h" |
3 | |
4 | int main(){ |
5 | |
6 | // default constructor |
7 | XMLFormatter xml("bung"); |
8 | |
9 | // add something |
10 | xml.addElement("Test1","Value1"); |
11 | xml.addElement("Test2","Value2"); |
12 | xml.addNest("BungLevel1"); |
13 | xml.addElement("Test3","Value3"); |
14 | xml.closeNest(); |
15 | |
16 | // return what it did |
17 | std::cout << xml.returnXML() << "\n"; |
18 | |
19 | // exit |
20 | return 0; |
21 | |
22 | } |