0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-28 23:03:00 +08:00
pugixml/docs/manual/changes.html
arseny.kapoulkine 18055b5bfa docs: Regenerated documentation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@605 99668b35-9821-0410-8761-19e4c4f06640
2010-07-15 17:02:56 +00:00

566 lines
22 KiB
HTML

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Changelog</title>
<link rel="stylesheet" href="../pugixml.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../manual.html" title="pugixml 0.9">
<link rel="up" href="../manual.html" title="pugixml 0.9">
<link rel="prev" href="xpath.html" title="XPath">
<link rel="next" href="apiref.html" title="API Reference">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table width="100%"><tr>
<td>pugixml 0.9 manual |
<a href="../manual.html">Overview</a> |
<a href="install.html">Installation</a> |
Document:
<a href="dom.html">Object model</a> &middot; <a href="loading.html">Loading</a> &middot; <a href="access.html">Accessing</a> &middot; <a href="modify.html">Modifying</a> &middot; <a href="saving.html">Saving</a> |
<a href="xpath.html">XPath</a> |
<a href="apiref.html">API Reference</a> |
<a href="toc.html">Table of Contents</a>
</td>
<td width="*" align="right"><div class="spirit-nav">
<a accesskey="p" href="xpath.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../manual.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../manual.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="apiref.html"><img src="../images/next.png" alt="Next"></a>
</div></td>
</tr></table>
<hr>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="manual.changes"></a><a class="link" href="changes.html" title="Changelog"> Changelog</a>
</h2></div></div></div>
<a name="manual.changes.1_07_2010___version_0_9"></a><h6>
<a class="link" href="changes.html#manual.changes.1_07_2010___version_0_9">1.07.2010 - version
0.9</a>
</h6>
<p>
Major release, featuring extended and improved Unicode support, miscellaneous
performance improvements, bug fixes and more.
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
Major Unicode improvements:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Introduced encoding support (automatic/manual encoding detection
on load, manual encoding selection on save, conversion from/to UTF8,
UTF16 LE/BE, UTF32 LE/BE)
</li>
<li class="listitem">
Introduced wchar_t mode (you can set PUGIXML_WCHAR_MODE define to
switch pugixml internal encoding from UTF8 to wchar_t; all functions
are switched to their Unicode variants)
</li>
<li class="listitem">
Load/save functions now support wide streams
</li>
</ol></div>
</li>
<li class="listitem">
Bug fixes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Fixed document corruption on failed parsing bug
</li>
<li class="listitem">
XPath string &lt;-&gt; number conversion improvements (increased
precision, fixed crash for huge numbers)
</li>
<li class="listitem">
Improved DOCTYPE parsing: now parser recognizes all well-formed DOCTYPE
declarations
</li>
<li class="listitem">
Fixed xml_attribute::as_uint() for large numbers (i.e. 2^32-1)
</li>
<li class="listitem">
Fixed xml_node::first_element_by_path for path components that are
prefixes of node names, but are not exactly equal to them.
</li>
</ol></div>
</li>
<li class="listitem">
Specification changes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
parse() API changed to load_buffer/load_buffer_inplace/load_buffer_inplace_own;
load_buffer APIs do not require zero-terminated strings.
</li>
<li class="listitem">
Renamed as_utf16 to as_wide
</li>
<li class="listitem">
Changed xml_node::offset_debug return type and xml_parse_result::offset
type to ptrdiff_t
</li>
<li class="listitem">
Nodes/attributes with empty names are now printed as :anonymous
</li>
</ol></div>
</li>
<li class="listitem">
Performance improvements:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Optimized document parsing and saving
</li>
<li class="listitem">
Changed internal memory management: internal allocator is used for
both metadata and name/value data; allocated pages are deleted if
all allocations from them are deleted
</li>
<li class="listitem">
Optimized memory consumption: sizeof(xml_node_struct) reduced from
40 bytes to 32 bytes on x86
</li>
<li class="listitem">
Optimized debug mode parsing/saving by order of magnitude
</li>
</ol></div>
</li>
<li class="listitem">
Miscellaneous:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
All STL includes except &lt;exception&gt; in pugixml.hpp are replaced
with forward declarations
</li>
<li class="listitem">
xml_node::remove_child and xml_node::remove_attribute now return
the operation result
</li>
</ol></div>
</li>
<li class="listitem">
Compatibility:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
parse() and as_utf16 are left for compatibility (these functions
are deprecated and will be removed in version 1.0)
</li>
<li class="listitem">
Wildcard functions, document_order/precompute_document_order functions,
all_elements_by_name function and format_write_bom_utf8 flag are
deprecated and will be removed in version 1.0
</li>
<li class="listitem">
xpath_type_t enumeration was renamed to xpath_value_type; xpath_type_t
is deprecated and will be removed in version 1.0
</li>
</ol></div>
</li>
</ul></div>
<a name="manual.changes.8_11_2009___version_0_5"></a><h6>
<a class="link" href="changes.html#manual.changes.8_11_2009___version_0_5">8.11.2009 - version
0.5</a>
</h6>
<p>
Major bugfix release. Changes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
XPath bugfixes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Fixed translate(), lang() and concat() functions (infinite loops/crashes)
</li>
<li class="listitem">
Fixed compilation of queries with empty literal strings ("")
</li>
<li class="listitem">
Fixed axis tests: they never add empty nodes/attributes to the resulting
node set now
</li>
<li class="listitem">
Fixed string-value evaluation for node-set (the result excluded some
text descendants)
</li>
<li class="listitem">
Fixed self:: axis (it behaved like ancestor-or-self::)
</li>
<li class="listitem">
Fixed following:: and preceding:: axes (they included descendent
and ancestor nodes, respectively)
</li>
<li class="listitem">
Minor fix for namespace-uri() function (namespace declaration scope
includes the parent element of namespace declaration attribute)
</li>
<li class="listitem">
Some incorrect queries are no longer parsed now (i.e. foo: *)
</li>
<li class="listitem">
Fixed text()/etc. node test parsing bug (i.e. foo[text()] failed
to compile)
</li>
<li class="listitem">
Fixed root step (/) - it now selects empty node set if query is evaluated
on empty node
</li>
<li class="listitem">
Fixed string to number conversion ("123 " converted to
NaN, "123 .456" converted to 123.456 - now the results
are 123 and NaN, respectively)
</li>
<li class="listitem">
Node set copying now preserves sorted type; leads to better performance
on some queries
</li>
</ol></div>
</li>
<li class="listitem">
Miscellaneous bugfixes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Fixed xml_node::offset_debug for PI nodes
</li>
<li class="listitem">
Added empty attribute checks to xml_node::remove_attribute
</li>
<li class="listitem">
Fixed node_pi and node_declaration copying
</li>
<li class="listitem">
Const-correctness fixes
</li>
</ol></div>
</li>
<li class="listitem">
Specification changes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
xpath_node::select_nodes() and related functions now throw exception
if expression return type is not node set (instead of assertion)
</li>
<li class="listitem">
xml_node::traverse() now sets depth to -1 for both begin() and end()
callbacks (was 0 at begin() and -1 at end())
</li>
<li class="listitem">
In case of non-raw node printing a newline is output after PCDATA
inside nodes if the PCDATA has siblings
</li>
<li class="listitem">
UTF8 -&gt; wchar_t conversion now considers 5-byte UTF8-like sequences
as invalid
</li>
</ol></div>
</li>
<li class="listitem">
New features:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Added xpath_node_set::operator[] for index-based iteration
</li>
<li class="listitem">
Added xpath_query::return_type()
</li>
<li class="listitem">
Added getter accessors for memory-management functions
</li>
</ol></div>
</li>
</ul></div>
<a name="manual.changes.17_09_2009___version_0_42"></a><h6>
<a class="link" href="changes.html#manual.changes.17_09_2009___version_0_42">17.09.2009 - version
0.42</a>
</h6>
<p>
Maintenance release. Changes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
Bug fixes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Fixed deallocation in case of custom allocation functions or if delete[]
/ free are incompatible
</li>
<li class="listitem">
XPath parser fixed for incorrect queries (i.e. incorrect XPath queries
should now always fail to compile)
</li>
<li class="listitem">
Const-correctness fixes for find_child_by_attribute
</li>
<li class="listitem">
Improved compatibility (miscellaneous warning fixes, fixed cstring
include dependency for GCC)
</li>
<li class="listitem">
Fixed iterator begin/end and print function to work correctly for
empty nodes
</li>
</ol></div>
</li>
<li class="listitem">
New features:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Added PUGIXML_API/PUGIXML_CLASS/PUGIXML_FUNCTION configuration macros
to control class/function attributes
</li>
<li class="listitem">
Added xml_attribute::set_value overloads for different types
</li>
</ol></div>
</li>
</ul></div>
<a name="manual.changes.8_02_2009___version_0_41"></a><h6>
<a class="link" href="changes.html#manual.changes.8_02_2009___version_0_41">8.02.2009 - version
0.41</a>
</h6>
<p>
Maintenance release. Changes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
Bug fixes:
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
Fixed bug with node printing (occasionally some content was not written
to output stream)
</li></ol></div>
</li></ul></div>
<a name="manual.changes.18_01_2009___version_0_4"></a><h6>
<a class="link" href="changes.html#manual.changes.18_01_2009___version_0_4">18.01.2009 - version
0.4</a>
</h6>
<p>
Changes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
Bug fixes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Documentation fix in samples for parse() with manual lifetime control
</li>
<li class="listitem">
Fixed document order sorting in XPath (it caused wrong order of nodes
after xpath_node_set::sort and wrong results of some XPath queries)
</li>
</ol></div>
</li>
<li class="listitem">
Node printing changes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Single quotes are no longer escaped when printing nodes
</li>
<li class="listitem">
Symbols in second half of ASCII table are no longer escaped when
printing nodes; because of this, format_utf8 flag is deleted as it's
no longer needed and format_write_bom is renamed to format_write_bom_utf8.
</li>
<li class="listitem">
Reworked node printing - now it works via xml_writer interface; implementations
for FILE* and std::ostream are available. As a side-effect, xml_document::save_file
now works without STL.
</li>
</ol></div>
</li>
<li class="listitem">
New features:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Added unsigned integer support for attributes (xml_attribute::as_uint,
xml_attribute::operator=)
</li>
<li class="listitem">
Now document declaration (&lt;?xml ...?&gt;) is parsed as node with
type node_declaration when parse_declaration flag is specified (access
to encoding/version is performed as if they were attributes, i.e.
doc.child("xml").attribute("version").as_float());
corresponding flags for node printing were also added
</li>
<li class="listitem">
Added support for custom memory management (see set_memory_management_functions
for details)
</li>
<li class="listitem">
Implemented node/attribute copying (see xml_node::insert_copy_* and
xml_node::append_copy for details)
</li>
<li class="listitem">
Added find_child_by_attribute and find_child_by_attribute_w to simplify
parsing code in some cases (i.e. COLLADA files)
</li>
<li class="listitem">
Added file offset information querying for debugging purposes (now
you're able to determine exact location of any xml_node in parsed
file, see xml_node::offset_debug for details)
</li>
<li class="listitem">
Improved error handling for parsing - now load(), load_file() and
parse() return xml_parse_result, which contains error code and last
parsed offset; this does not break old interface as xml_parse_result
can be implicitly casted to bool.
</li>
</ol></div>
</li>
</ul></div>
<a name="manual.changes.31_10_2007___version_0_34"></a><h6>
<a class="link" href="changes.html#manual.changes.31_10_2007___version_0_34">31.10.2007 - version
0.34</a>
</h6>
<p>
Maintenance release. Changes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
Bug fixes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Fixed bug with loading from text-mode iostreams
</li>
<li class="listitem">
Fixed leak when transfer_ownership is true and parsing is failing
</li>
<li class="listitem">
Fixed bug in saving (\r and \n are now escaped in attribute values)
</li>
<li class="listitem">
Renamed free() to destroy() - some macro conflicts were reported
</li>
</ol></div>
</li>
<li class="listitem">
New features:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Improved compatibility (supported Digital Mars C++, MSVC 6, CodeWarrior
8, PGI C++, Comeau, supported PS3 and XBox360)
</li>
<li class="listitem">
PUGIXML_NO_EXCEPTION flag for platforms without exception handling
</li>
</ol></div>
</li>
</ul></div>
<a name="manual.changes.21_02_2007___version_0_3"></a><h6>
<a class="link" href="changes.html#manual.changes.21_02_2007___version_0_3">21.02.2007 - version
0.3</a>
</h6>
<p>
Refactored, reworked and improved version. Changes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
Interface:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Added XPath
</li>
<li class="listitem">
Added tree modification functions
</li>
<li class="listitem">
Added no STL compilation mode
</li>
<li class="listitem">
Added saving document to file
</li>
<li class="listitem">
Refactored parsing flags
</li>
<li class="listitem">
Removed xml_parser class in favor of xml_document
</li>
<li class="listitem">
Added transfer ownership parsing mode
</li>
<li class="listitem">
Modified the way xml_tree_walker works
</li>
<li class="listitem">
Iterators are now non-constant
</li>
</ol></div>
</li>
<li class="listitem">
Implementation:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Support of several compilers and platforms
</li>
<li class="listitem">
Refactored and sped up parsing core
</li>
<li class="listitem">
Improved standard compliancy
</li>
<li class="listitem">
Added XPath implementation
</li>
<li class="listitem">
Fixed several bugs
</li>
</ol></div>
</li>
</ul></div>
<a name="manual.changes.6_11_2006___version_0_2"></a><h6>
<a class="link" href="changes.html#manual.changes.6_11_2006___version_0_2">6.11.2006 - version
0.2</a>
</h6>
<p>
First public release. Changes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
Bug fixes:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Fixed child_value() (for empty nodes)
</li>
<li class="listitem">
Fixed xml_parser_impl warning at W4
</li>
</ol></div>
</li>
<li class="listitem">
New features:
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
Introduced child_value(name) and child_value_w(name)
</li>
<li class="listitem">
parse_eol_pcdata and parse_eol_attribute flags + parse_minimal optimizations
</li>
<li class="listitem">
Optimizations of strconv_t
</li>
</ol></div>
</li>
</ul></div>
<a name="manual.changes.15_07_2006___version_0_1"></a><h6>
<a class="link" href="changes.html#manual.changes.15_07_2006___version_0_1">15.07.2006 - version
0.1</a>
</h6>
<p>
First private release for testing purposes
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2010 Arseny Kapoulkine<p>
Distributed under the MIT License
</p>
</div></td>
</tr></table>
<hr>
<table width="100%"><tr>
<td>pugixml 0.9 manual |
<a href="../manual.html">Overview</a> |
<a href="install.html">Installation</a> |
Document:
<a href="dom.html">Object model</a> &middot; <a href="loading.html">Loading</a> &middot; <a href="access.html">Accessing</a> &middot; <a href="modify.html">Modifying</a> &middot; <a href="saving.html">Saving</a> |
<a href="xpath.html">XPath</a> |
<a href="apiref.html">API Reference</a> |
<a href="toc.html">Table of Contents</a>
</td>
<td width="*" align="right"><div class="spirit-nav">
<a accesskey="p" href="xpath.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../manual.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../manual.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="apiref.html"><img src="../images/next.png" alt="Next"></a>
</div></td>
</tr></table>
</body>
</html>