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 | { | ||||
Lee Thomason | fde6a75 | 2012-01-14 18:08:12 -0800 | [diff] [blame^] | 10 | #if 0 |
U-Lama\Lee | 4cee611 | 2011-12-31 14:58:18 -0800 | [diff] [blame] | 11 | { |
12 | static const char* test = "<!--hello world-->"; | ||||
U-Lama\Lee | e13c3e6 | 2011-12-28 14:36:55 -0800 | [diff] [blame] | 13 | |
U-Lama\Lee | 4cee611 | 2011-12-31 14:58:18 -0800 | [diff] [blame] | 14 | XMLDocument doc; |
15 | doc.Parse( test ); | ||||
16 | doc.Print( stdout ); | ||||
17 | } | ||||
Lee Thomason | fde6a75 | 2012-01-14 18:08:12 -0800 | [diff] [blame^] | 18 | #endif |
U-Lama\Lee | 4cee611 | 2011-12-31 14:58:18 -0800 | [diff] [blame] | 19 | { |
Lee Thomason | fde6a75 | 2012-01-14 18:08:12 -0800 | [diff] [blame^] | 20 | static const char* test = "<!--hello world\n" |
21 | " line 2\r-->"; | ||||
U-Lama\Lee | e13c3e6 | 2011-12-28 14:36:55 -0800 | [diff] [blame] | 22 | |
U-Lama\Lee | 4cee611 | 2011-12-31 14:58:18 -0800 | [diff] [blame] | 23 | XMLDocument doc; |
24 | doc.Parse( test ); | ||||
25 | doc.Print( stdout ); | ||||
26 | } | ||||
U-Lama\Lee | e13c3e6 | 2011-12-28 14:36:55 -0800 | [diff] [blame] | 27 | return 0; |
28 | } |