U-Lama\Lee | e13c3e6 | 2011-12-28 14:36:55 -0800 | [diff] [blame] | 1 | #include "tinyxml2.h"
|
| 2 |
|
| 3 | #include <stdio.h>
|
| 4 | #include <stdlib.h>
|
| 5 |
|
| 6 | using namespace tinyxml2;
|
| 7 |
|
| 8 | int main( int argc, const char* argv )
|
| 9 | {
|
U-Lama\Lee | 4cee611 | 2011-12-31 14:58:18 -0800 | [diff] [blame^] | 10 | {
|
| 11 | static const char* test = "<!--hello world-->";
|
U-Lama\Lee | e13c3e6 | 2011-12-28 14:36:55 -0800 | [diff] [blame] | 12 |
|
U-Lama\Lee | 4cee611 | 2011-12-31 14:58:18 -0800 | [diff] [blame^] | 13 | XMLDocument doc;
|
| 14 | doc.Parse( test );
|
| 15 | doc.Print( stdout );
|
| 16 | }
|
| 17 | /*
|
| 18 | {
|
| 19 | static const char* test = "<hello></hello>";
|
U-Lama\Lee | e13c3e6 | 2011-12-28 14:36:55 -0800 | [diff] [blame] | 20 |
|
U-Lama\Lee | 4cee611 | 2011-12-31 14:58:18 -0800 | [diff] [blame^] | 21 | XMLDocument doc;
|
| 22 | doc.Parse( test );
|
| 23 | doc.Print( stdout );
|
| 24 | }
|
| 25 | */
|
U-Lama\Lee | e13c3e6 | 2011-12-28 14:36:55 -0800 | [diff] [blame] | 26 | return 0;
|
| 27 | } |