sniperbat
2590088631
Add compact mode to XMLPrinter, for printing without '\n' and space.
...
let output file smaller.
usage:
//------------------------------------------------
XMLPrinter printer;
printer->SetCompactMode( true ); //enable compact mode
doc->Print( &printer );
SomeFunction( printer.CStr() );
//------------------------------------------------
or
//------------------------------------------------
//enable at construction
XMLPrinter printer( file, true ); // to file
//XMLPrinter printer( NULL, true ); // to men
doc->Print( &printer );
SomeFunction( printer.CStr() );
//------------------------------------------------
The '\n' and space in Text or Attribute will be kept.
2012-05-28 17:22:07 +08:00
Lee Thomason (grinliz)
48ea0bcf80
renamed function, added test case
2012-05-26 14:41:14 -07:00
sniperbat
e01e786883
add a method to help get the size of the XML file in memory
2012-05-21 12:45:36 +08:00
Lee Thomason
a2ae54e40d
fix a missing [] in the delete call
2012-05-18 13:47:48 -07:00
Lee Thomason
b3fcf26e0e
Merge branch 'master' of https://github.com/pzychotic/tinyxml2
2012-05-15 10:31:50 -07:00
Lee Thomason
ee87c620c8
possible missing header
2012-05-14 09:27:47 -07:00
Thomas Ro
08bdf50076
Fixed typos in code documentation.
2012-05-12 14:21:23 +02:00
Thomas Ro
c4ae8a9a2d
Removed unused variable from CMakeLists.txt
2012-05-12 02:02:31 +02:00
Thomas Ro
d08dff9216
Fixed CMakeLists.txt for moved .xml files.
2012-05-12 02:00:40 +02:00
Lee Thomason
e638a925b2
sync
2012-05-11 10:38:54 -07:00
Thomas Ro
7d7a9a37bd
fixed VS2010 x64 compiler warnings about possible loss of data
2012-05-10 00:23:19 +02:00
Bruno Dias
a0802164d8
removed files that will be generated by the xmltest.
2012-05-07 05:09:03 -03:00
Bruno Dias
2553a13d0a
added resources folder for txts and xmls.
2012-05-07 05:06:37 -03:00
Bruno Dias
a2d4e6e943
moving xmls and txts to the resources folder.
2012-05-07 04:58:11 -03:00
Lee Thomason
f68c438ee2
added new test for BOM, and added good defaults for NewDeclaration
2012-04-28 14:37:11 -07:00
Lee Thomason
0aa8a80fd7
Enough bake time. Up version to 1.0
2012-04-28 14:20:27 -07:00
Lee Thomason
9708885e5e
minor cleanup to the parsing loop
2012-04-18 11:39:42 -07:00
Lee Thomason
8713775d9b
Merge branch 'attribute' of github.com:leethomason/tinyxml2 into attribute
2012-04-18 11:32:11 -07:00
Lee Thomason
975426752c
Merge branch 'master' of github.com:leethomason/tinyxml2
2012-04-18 11:25:01 -07:00
Lee Thomason
5e3803cac3
Better attribute system. Removes redundant list searching of LinkAttribute. Faster parsing on initial read. Added badly needed missing test cases.
2012-04-16 08:57:05 -07:00
Lee Thomason
d0b19df88c
fix sleazy cast causing compilation issue
2012-04-12 08:41:37 -07:00
Lee Thomason
d11cd169e6
minor whitespace cleanup
2012-04-12 08:35:36 -07:00
Ken Miller
81da1fb26b
Made SaveFile symmetrical with LoadFile
...
Added overload taking a FILE pointer
Return error code (if any) instead of void
2012-04-09 23:32:26 -05:00
Lee Thomason (grinliz)
8712757389
merging handles to the master
2012-04-07 20:56:38 -07:00
Lee Thomason (grinliz)
8871cd8437
add xmltest.h as a place to put the example docs, so they don't pollute the main file'
2012-04-06 21:40:08 -07:00
Lee Thomason (grinliz)
b9e791fa4e
simplify safe logic
2012-04-06 21:27:10 -07:00
Lee Thomason (grinliz)
a4a36ba3c2
remove random -1 in length
2012-04-06 21:24:29 -07:00
Lee Thomason (grinliz)
598c13efa8
fix the safe function behavior
2012-04-06 21:18:23 -07:00
Lee Thomason
f14695f26b
Merge pull request #16 from diasbruno/master
...
xcode project update.
2012-04-06 08:54:42 -07:00
Bruno Dias
26e15df1e2
update the xcode project.
2012-04-06 00:39:48 -03:00
Lee Thomason
2f6e476e5f
added a few notes to the readme about building
2012-04-05 08:52:07 -07:00
Lee Thomason
68fd6b80cd
Merge pull request #11 from Groovounet/cmake
...
Added cmake support
2012-04-05 08:45:46 -07:00
Lee Thomason (grinliz)
ae209f6aed
added docs. basic handles tests
2012-04-04 22:00:07 -07:00
Lee Thomason (grinliz)
70e9c6b6a0
Merge branch 'master' into handles
2012-04-04 21:38:17 -07:00
Lee Thomason
8b89981989
gave up trying to be clever. split the handles into 2 classes.
2012-04-04 15:58:16 -07:00
Lee Thomason
4a3c81c0f0
Merge branch 'master' of github.com:leethomason/tinyxml2
2012-04-04 15:47:19 -07:00
Lee Thomason
db0bbb60a1
handles work
2012-04-04 15:47:04 -07:00
Lee Thomason (grinliz)
c8678e2fcc
upped the version
2012-04-04 12:39:53 -07:00
Lee Thomason (grinliz)
6a22be220a
Added proper examples, integrated them into xmltest, and make them part of the build.
2012-04-04 12:39:05 -07:00
Lee Thomason
5761203084
trying to get template to work
2012-04-03 16:43:22 -07:00
Lee Thomason (grinliz)
8a0975dfa7
minor warning fix
2012-03-31 20:09:20 -07:00
Lee Thomason
00770d2855
handles wip. not happy with const behavior
2012-03-28 17:48:44 -07:00
Lee Thomason
5708f814a6
handles wip. not happy with const behavior
2012-03-28 17:46:41 -07:00
Lee Thomason
3ffdd39dbf
handles wip
2012-03-28 17:27:55 -07:00
Lee Thomason
51051930cd
Merge branch 'master' of github.com:leethomason/tinyxml2
2012-03-28 16:21:58 -07:00
Lee Thomason
db5efc1219
Merge pull request #8 from diasbruno/master
...
xcode project for tinyxml.
2012-03-26 21:00:12 -07:00
Lee Thomason
53f745fa4f
Merge pull request #9 from gamaral/master
...
Clang analyzer warnings (minor)
2012-03-26 20:54:16 -07:00
Christophe Riccio
b1ff002ba6
Added cmake support
2012-03-27 00:50:52 +01:00
Lee Thomason
b411b8e3c1
Merge branch 'master' of https://github.com/gamaral/tinyxml2
2012-03-25 13:20:03 -07:00
Lee Thomason
3a68262c67
minor doc fix
2012-03-25 13:19:40 -07:00