changes.txt 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. Changes in version 1.0.1:
  2. - Fixed comment tags which were outputing as '<?--' instead of
  3. the correct '<!--'.
  4. - Implemented the Next and Prev methods of the TiXmlAttribute class.
  5. - Renamed 'LastAttribtute' to 'LastAttribute'
  6. - Fixed bad pointer to 'isspace' that could occur while parsing text.
  7. - Errors finding beginning and end of tags no longer throw it into an
  8. infinite loop. (Hopefully.)
  9. Changes in version 1.0.2
  10. - Minor documentation fixes.
  11. Changes in version 1.0.3
  12. - After nodes are added to a document, they return a pointer
  13. to the new node instead of a bool for success.
  14. - Elements can be constructed with a value, which is the
  15. element name. Every element must have a value or it will be
  16. invalid, but the code changes to enforce this are not fully
  17. in place.
  18. Changes in version 1.1.0
  19. - Added the TiXmlAttributeSet class to pull the attributes into
  20. a seperate container.
  21. - Moved the doubly liked list out of XmlBase. Now XmlBase only
  22. requires the Print() function and defines some utility functions.
  23. - Moved errors into a seperate file. (With the idea of internationalization
  24. to the other latin-1 languages.)
  25. - Added the "NodeType"
  26. - Fixed white space parsing in text to conform with the standard.
  27. Basically, all white space becomes just one space.
  28. - Added the TiXmlDeclaration class to read xml declarations.
  29. Changes in version 1.2.0
  30. - Removed the factory. The factory was not really in the spirit
  31. of small and simple, confused the code, and was of limited value.
  32. - Added FirstChildElement and NextSiblingElement, because they
  33. are such common functions.
  34. - Re-wrote the example to test and demonstrate more functionality.
  35. Changes in version 1.2.1
  36. - Fixed a bug where comments couldn't be inside elements.
  37. - Loading now clears out existing XML rather than appending.
  38. - Added the "Clear" method on a node to delete all its children.
  39. Changes in version 1.2.2
  40. - Fixed TiXmlAttribute::Previous actually returning "next." Thanks
  41. to Rickard Troedsson for the bug fix.
  42. Changes in version 1.2.3
  43. - Added the TIXML prefix to the error strings to resolve conflicts
  44. with #defines in OS headers. Thanks to Steve Lhomme.
  45. - Fixed a delete buf that should be a delete [] buf.
  46. Thanks to Ephi Sinowitz.
  47. Changes in version 1.2.4
  48. - ReplaceChild() was almost guarenteed to fail. Should be fixed,
  49. thanks to Joe Smith. Joe also pointed out that the Print() functions
  50. should take stream references: I agree, and would like to overload
  51. the Print() method to take either format, but I don't want to do
  52. this in a dot release.
  53. - Some compilers seem to need an extra <ctype.h> include. Thanks
  54. to Steve Lhomme for that.
  55. Changes in version 2.0.0 BETA
  56. - Made the ToXXX() casts safe if 'this' is null.
  57. When "LoadFile" is called with a filename, the value will correctly get set.
  58. Thanks to Brian Yoder.
  59. - Fixed bug where isalpha() and isalnum() would get called with a negative value for
  60. high ascii numbers. Thanks to Alesky Aksenov.
  61. - Fixed some errors codes that were not getting set.
  62. - Made methods "const" that were not.
  63. - Added a switch to enable or disable the ignoring of white space. ( TiXmlDocument::SetIgnoreWhiteSpace() )
  64. - Greater standardization and code re-use in the parser.
  65. - Added a stream out operator.
  66. - Added a stream in operator.
  67. - Entity support, of predefined entites. &#x entities are untouched by input or output.
  68. - Improved text out formatting.
  69. - Fixed ReplaceChild bug, thanks to Tao Chen.
  70. Changes in version 2.0.1
  71. - Fixed hanging on loading a 0 length file. Thanks to Jeff Scozzafava.
  72. - Fixed crashing on InsertBeforeChild and InsertAfterChild. Also possibility of bad links being
  73. created by same function. Thanks to Frank De prins.
  74. - Added missing licence text. Thanks to Lars Willemsens.
  75. - Added <ctype.h> include, at the suggestion of Steve Walters.
  76. Changes in version 2.1.0
  77. - Yves Berquin brings us the STL switch. The forum on SourceForge, and various emails to
  78. me, have long debated all out STL vs. no STL at all. And now you can have it both ways.
  79. TinyXml will compile either way.
  80. Changes in version 2.1.1
  81. - Compilation warnings.
  82. Changes in version 2.1.2
  83. - Uneeded code is not compiled in the STL case.
  84. - Changed headers so that STL can be turned on or off in tinyxml.h
  85. Changes in version 2.1.3
  86. - Fixed non-const reference in API; now uses a pointer.
  87. - Copy constructor of TiXmlString not checking for assignment to self.
  88. - Nimrod Cohen found a truly evil bug in the STL implementation that occurs
  89. when a string is converted to a c_str and then assigned to self. Search for
  90. STL_STRING_BUG for a full description. I'm asserting this is a Microsoft STL
  91. bug, since &string and string.c_str() should never be the same. Nevertheless,
  92. the code works around it.
  93. - Urivan Saaib pointed out a compiler conflict, where the C headers define
  94. the isblank macro, which was wiping out the TiXmlString::isblank() method.
  95. The method was unused and has been removed.
  96. Changes in version 2.1.4
  97. - Reworked the entity code. Entities were not correctly surving round trip input and output.
  98. Will now automatically create entities for high ascii in output.
  99. Changes in version 2.1.5
  100. - Bug fix by kylotan : infinite loop on some input (tinyxmlparser.cpp rev 1.27)
  101. - Contributed by Ivica Aracic (bytelord) : 1 new VC++ project to compile versions as static libraries (tinyxml_lib.dsp),
  102. and an example usage in xmltest.dsp
  103. (Patch request ID 678605)
  104. - A suggestion by Ronald Fenner Jr (dormlock) to add #include <istream> and <ostream> for Apple's Project Builder
  105. (Patch request ID 697642)
  106. - A patch from ohommes that allows to parse correctly dots in element names and attribute names
  107. (Patch request 602600 and kylotan 701728)
  108. - A patch from hermitgeek ( James ) and wasteland for improper error reporting
  109. - Reviewed by Lee, with the following changes:
  110. - Got sick of fighting the STL/non-STL thing in the windows build. Broke
  111. them out as seperate projects.
  112. - I have too long not included the dsw. Added.
  113. - TinyXmlText had a protected Print. Odd.
  114. - Made LinkEndChild public, with docs and appropriate warnings.
  115. - Updated the docs.
  116. 2.2.0
  117. - Fixed an uninitialized pointer in the TiXmlAttributes
  118. - Fixed STL compilation problem in MinGW (and gcc 3?) - thanks Brian Yoder for finding this one
  119. - Fixed a syntax error in TiXmlDeclaration - thanks Brian Yoder
  120. - Fletcher Dunn proposed and submitted new error handling that tracked the row and column. Lee
  121. modified it to not have performance impact.
  122. - General cleanup suggestions from Fletcher Dunn.
  123. - In error handling, general errors will no longer clear the error state of specific ones.
  124. - Fix error in documentation : comments starting with "<?--" instead of "<!--" (thanks ion_pulse)
  125. - Added the TiXmlHandle. An easy, safe way to browse XML DOMs with less code.
  126. - Added QueryAttribute calls which have better error messaging. (Proposed by Fletcher Dunn)
  127. - Nodes and attributes can now print themselves to strings. (Yves suggestion)
  128. - Fixed bug where entities with one character would confuse parser. (Thanks Roman)
  129. 2.2.1
  130. - Additional testing (no more bugs found to be fixed in this release)
  131. - Significant performance improvement to the cursor code.
  132. 2.3.0
  133. - User Data are now defined in TiXmlBase instead of TiXmlNode
  134. - Character Entities are now UCS-2
  135. - Character Entities can be decimal or hexadecimal
  136. - UTF-8 conversion.
  137. - Fixed many, many bugs.
  138. 2.3.1
  139. - Fixed bug in handling nulls embedded in the input.
  140. - Make UTF-8 parser tolerant of bad text encoding.
  141. - Added encoding detection.
  142. - Many fixes and input from John-Philip Leonard Johansson (JP) and Ellers,
  143. including UTF-8 feedback, bug reports, and patches. Thanks!
  144. - Added version # constants - a suggestion from JP and Ellers.
  145. - [ 979180 ] Missing ; in entity reference, fix from Rob Laveaux.
  146. - Copy constructors and assignment have been a long time coming. Thanks to
  147. Fokke and JP.
  148. 2.3.2
  149. - Made the IsAlpha and IsAlphaNum much more tolerant of non-UTF-8 encodings. Thanks
  150. Volker Boerchers for finding the issue.
  151. - Ran the program though the magnificent Valgrind - http://valgrind.kde.org - to check
  152. for memory errors. Fixed some minor issues.
  153. 2.3.3
  154. - Fixed crash when test program was run from incorrect directory.
  155. - Fixed bug 1070717 - empty document not returned correctly - thanks Katsuhisa Yuasa.
  156. - Bug 1079301 resolved - deprecated stdlib calls. Thanks Adrian Boeing.
  157. - Bug 1035218 fixed - documentation errors. Xunji Luo
  158. - Other bug fixes have accumulated and been fixed on the way as well; my apologies to
  159. authors not credited!
  160. - Big fix / addition is to correctly return const values. TinyXml could basically
  161. remove const in a method like this: TiXmlElement* Foo() const, where the returned element
  162. was a pointer to internal data. That is now: const TiXmlElement* Foo() const and
  163. TiXmlElement* Foo().
  164. 2.3.4
  165. - Fixed additional const errors, thanks Kent Gibson.
  166. - Correctly re-enable warnings after tinyxml header. Thanks Cory Nelson.
  167. - Variety of type cleanup and warning fixes. Thanks Warren Stevens.
  168. - Cleaned up unneeded constructor calls in TinyString - thanks to Geoff Carlton and
  169. the discussion group on sourceforge.
  170. 2.4.0
  171. - Improved string class, thanks Tyge Lovset (whose name gets mangled in English - sorry)
  172. - Type cast compiler warning, thanks Rob van den Bogaard
  173. - Added GetText() convenience function. Thanks Ilya Parniuk & Andrew Ellers for input.
  174. - Many thanks to marlonism for finding an infinite loop in bad xml.
  175. - A patch to cleanup warnings from Robert Gebis.
  176. - Added ValueStr() to get the value of a node as a string.
  177. - TiXmlText can now parse and output as CDATA
  178. - Additional string improvement from James (z2895)
  179. - Removed extraneous 'const', thanks David Aldrich
  180. - First pass at switching to the "safe" stdlib functions. Many people have suggested and
  181. pushed on this, but Warren Stevens put together the first proposal.
  182. - TinyXml now will do EOL normalization before parsing, consistent with the W3C XML spec.
  183. - Documents loaded with the UTF-8 BOM will now save with the UTF-8 BOM. Good suggestion
  184. from 'instructor_'
  185. - Ellers submitted his very popular tutorials, which have been added to the distribution.
  186. 2.4.1
  187. - Fixed CDATA output formatting
  188. - Fixed memory allocators in TinyString to work with overloaded new/delete
  189. 2.4.2
  190. - solosnake pointed out that TIXML_LOG causes problems on an XBOX. The definition in the header
  191. was superflous and was moved inside of DEBUG_PARSING
  192. 2.4.3
  193. - Fixed a test bug that caused a crash in 'xmltest'. TinyXML was fine, but it isn't good
  194. to ship with a broken test suite.
  195. - Started converting some functions to not cast between std::string and const char*
  196. quite as often.
  197. - Added FILE* versions of the document loads - good suggestion from Wade Brainerd
  198. - Empty documents might not always return the errors they should. [1398915] Thanks to igor v.
  199. - Added some asserts for multiply adding a node, regardng bug [1391937] suggested by Paco Arjonilla.
  200. 2.4.4
  201. - Bug find thanks to andre-gross found a memory leak that occured when a document failed to load.
  202. - Bug find (and good analysis) by VirtualJim who found a case where attribute parsing
  203. should be throwing an error and wasn't.
  204. - Steve Hyatt suggested the QueryValueAttribute method, which is now implemented.
  205. - DavidA identified a chunk of dead code.
  206. - Andrew Baxter sent in some compiler warnings that were good clean up points.
  207. 2.5
  208. - Added the Visit() API. Many thanks to both Andrew Ellerton and John-Philip for all their
  209. work, code, suggestion, and just general pushing that it should be done.
  210. - Removed existing streaming code and use TiXmlPrinter instead.
  211. - [ tinyxml-Bugs-1527079 ] Compile error in tinystr.cpp fixed, thanks to Paul Suggs
  212. - [ tinyxml-Bugs-1522890 ] SaveFile has no error checks fixed, thanks to Ivan Dobrokotov
  213. - Ivan Dobrokotov also reported redundant memory allocation in the Attribute() method, which
  214. upon investigation was a mess. The attribute should now be fixed for both const char* and
  215. std::string, and the return types match the input parameters.
  216. - Feature [ 1511105 ] Make TiXmlComment constructor accept a string / char*, implemented.
  217. Thanks to Karl Itschen for the feedback.
  218. - [ 1480108 ] Stream parsing fails when CDATA contains tags was found by Tobias Grimm, who also
  219. submitted a test case and patch. A significant bug in CDATA streaming (operator>>) has now
  220. been fixed.