Commit Graph

515 Commits

Author SHA1 Message Date
Uli Kusterer 4cd1f269c2 Added IntText(), UnsignedText(), DoubleText() and FloatText() convenience wrappers. 2014-01-21 02:54:36 +01:00
Uli Kusterer ff8e2041dd To bring BoolFirstChild() more in line with the other methods, reimplemented it in terms of a new QueryBoolFirstChild(). 2014-01-21 02:53:47 +01:00
Uli Kusterer 4af5573f42 Tests for SetBoolFirstChild and BoolFirstChild. 2014-01-21 02:36:47 +01:00
Uli Kusterer c1c20bb196 Bools should really be implemented as self-closing <true /> and <false /> tags, not as 0/1 inside a tag, so removing those SetText variants again, in favor of SetBoolFirstChild() and BoolFirstChild() methods. 2014-01-21 02:23:20 +01:00
Uli Kusterer 7411c08e90 Add tests for SetText(). 2014-01-21 01:57:38 +01:00
Uli Kusterer dcefa0e43f Add typed convenience setters for SetText(). 2014-01-21 01:36:41 +01:00
Uli Kusterer 869bb599c1 Make SetText() behave like the docs say. 2014-01-21 01:36:16 +01:00
Uli Kusterer 85fff5e50a Add comment for SetText(). 2014-01-21 01:35:30 +01:00
Uli Kusterer 8fe342a872 Add SetText() as analog to GetText(). 2014-01-21 01:12:47 +01:00
Lee Thomason 44ce7930b7 Merge branch 'master' of https://github.com/leethomason/tinyxml2 2014-01-14 12:30:18 -08:00
Lee Thomason c3708ccf08 implement a fix to floating point precision as proposed by schuellc. 2014-01-14 12:30:03 -08:00
Lee Thomason 2ece2f1690 Merge pull request #150 from danmar/master
Fixed issue 147 (XMLDocument::LoadFile() may crash on non-regular file)
2014-01-10 13:35:19 -08:00
Daniel Marjamäki ba4b328b3d Fixed issue 147 (XMLDocument::LoadFile() may crash on non-regular file) 2014-01-10 21:37:27 +01:00
Lee Thomason 343a5ff3bd Merge pull request #144 from sopvop/patch-1
add TINYXML2_EXPORT define when building shared lib
2013-12-12 13:47:11 -08:00
Leonid Onokhov 3dacebf8ee add TINYXML2_EXPORT define when building shared lib
otherwise it exports no symbols and msvc does not create import .lib
2013-12-12 15:07:34 +03:00
Lee Thomason 61871d60a6 Fix up the readme, add attribution for the logo. 2013-12-05 11:44:38 -08:00
Lee Thomason ce0510ba2d rename Reset to Clear to be consistent with XMLDocument 2013-11-26 21:29:37 -08:00
Reinhard Klambauer 3bc3d4e24c Added a method to reset the memory buffer to the XMLPrinter class.
This enables to reset the printer memory to start again from the beginning.
2013-11-22 14:05:21 +01:00
Reinhard Klambauer 4e74b13e7a Added a method to reset the memory buffer of the DynArray class.
The the allocated memory will not be touched so the capacity keeps its current level.
2013-11-22 14:01:58 +01:00
Lee Thomason 370761b179 Merge pull request #140 from ledyba/check_data_len
you have to check len before accsessing "p".
2013-11-05 10:52:04 -08:00
psi 690ba07bda you have to check len before accsessing "p". 2013-11-03 10:54:33 +09:00
Lee Thomason e1979a883b Merge pull request #139 from dennisjenkins75/master
Grammar error: there -> their.
2013-10-26 21:53:16 -07:00
Lee Thomason 5613cb9237 up the version 2013-10-26 21:52:35 -07:00
Lee Thomason 3b7927efb5 formatting tweaks 2013-10-26 21:50:46 -07:00
Dennis Jenkins 68a1c93e2e Grammar error: there -> their. 2013-10-25 23:01:34 -05:00
Michael Daumling ed52328ced Insert() methods check for inserted XML to be in the same doc, and remove XML from old location if already inserted. 2013-10-23 07:47:29 +02:00
Lee Thomason ab42b16bac Merge pull request #136 from FreakC/master
Issue #134
2013-10-22 11:36:29 -07:00
Michael Daumling 2162688ad3 Issue #134: Change 3 methods to not being inlined. They reference the StrPair class, which is not exported, thus creating linker problems with tinyxml2 in a DLL. 2013-10-22 17:03:37 +02:00
Lee Thomason 927fe73c5b Merge pull request #133 from dennisjenkins75/master
Small demo program to generate HTML5 via sub-classed tinyxml2::XMLPrinter
2013-10-16 13:59:10 -07:00
Dennis Jenkins d31021392a Changed indentation style to match tinyxml2 project. 2013-10-11 16:59:49 -05:00
Dennis Jenkins bc785155f2 Changed indentation style to match tinyxml2 project. 2013-10-11 16:55:14 -05:00
Dennis Jenkins 9460e5093c Demo/example/contrib of using tinyxml2 to generate confomant HTML5. 2013-10-11 16:48:55 -05:00
Lee Thomason 44ba601c5f Merge pull request #131 from dennisjenkins75/master
Minor tweaks to C++ encapsulation necessary to subclass XMLPrinter sufficiently to create XMLPrinterHTML5
2013-10-10 22:10:29 -07:00
Dennis Jenkins 59c75d3322 Added method DynArray::PeekTop(), provides useful abstraction in tinyxml2::XMLPrinterHTML5::CloseElement(). Made tinyxml2::CloseElement() and destructor virtual. Made tinyxml2::_SealElement(), _elementJustOpened and _stack all protected instead of private (needed in XMLPrinterHTML5 to selective prevent some elements from being self-closing). 2013-10-08 13:10:07 -05:00
Lee Thomason 74a81cf1d9 minor readme update 2013-09-12 23:59:43 -07:00
Lee Thomason 1f83145cb4 Merge branch 'master' of github.com:leethomason/tinyxml2 2013-09-12 23:53:47 -07:00
Lee Thomason 1688114e55 add logo 2013-09-12 23:53:08 -07:00
Lee Thomason 03238517b3 Merge pull request #125 from PKEuS/master
Added depth as constructor argument to XMLPrinter
2013-08-05 13:04:27 -07:00
PKEuS 1bfb95488f Added depth as constructor argument to XMLPrinter. This way, XML files that are not written with XMLDocument can be properly indented.
Removed unused forward declaration
2013-08-04 14:04:09 +02:00
Lee Thomason (grinliz) db304256bb clean up the pass/fail logic, still return the same value from test if it fails 2013-07-31 12:24:52 -07:00
Lee Thomason 70d343f513 Merge pull request #124 from diasbruno/makefile-test
added test rule.
2013-07-31 12:21:42 -07:00
Lee Thomason 8b482728ef Merge pull request #123 from diasbruno/xmltest-return
xmltest: if one of the tests has failed, return > 0.
2013-07-31 12:21:25 -07:00
Lee Thomason 9c1ef1d4a3 Merge pull request #120 from PKEuS/master
Added support for building TinyXML into a .dll or .lib
2013-07-31 12:15:53 -07:00
Bruno Dias 032aa1b96c added test rule. 2013-07-31 12:01:12 -03:00
Bruno Dias 721b42da8e make the xmltest to return != 0, if one of the tests has failed. 2013-07-31 11:50:44 -03:00
PKEuS 95060350bd Removed dllexport/import attribute from private class, disable related warning C4251 2013-07-26 10:42:44 +02:00
PKEuS 0c55c70b11 Improved output paths in VS solution 2013-07-12 21:16:33 +02:00
PKEuS 16ed47dc14 Added support for building TinyXML as a .lib or .dll 2013-07-12 21:16:33 +02:00
Lee Thomason 1c9250cab5 Merge pull request #119 from PKEuS/master
Improved VS solution; fixed cppcheck messages
2013-07-07 17:37:22 -07:00
PKEuS 1c5f99e37c Fixed two cppcheck messages 2013-07-06 11:28:39 +02:00