deps/src/libxml2-2.9.1/doc/upgrade.html
| |
|
|
|
|
|
|
|
|
|
| Developer Menu | |
|
| API Indexes | |
|
| Related links | |
|
|
|
|
|
|
Incompatible changes:
Version 2 of libxml2 is the first version introducing serious backward incompatible changes. The main goals were:
So client code of libxml designed to run with version 1.x may have to be changed to compile against version 2.x of libxml. Here is a list of changes that I have collected, they may not be sufficient, so in case you find other change which are required, drop me a mail:
Note also that with the new default the output functions don't add any extra indentation when saving a tree in order to be able to round trip (read and save) without inflating the document with extra formatting chars.
xml2-config --cflags
output to generate you compile commands this will probably work out of the box
Two new version of libxml (1.8.11) and libxml2 (2.3.4) have been released to allow smooth upgrade of existing libxml v1code while retaining compatibility. They offers the following:
So the roadmap to upgrade your existing libxml applications is the following:
Following those steps should work. It worked for some of my own code.
Let me put some emphasis on the fact that there is far more changes from libxml 1.x to 2.x than the ones you may have to patch for. The overall code has been considerably cleaned up and the conformance to the XML specification has been drastically improved too. Don't take those changes as an excuse to not upgrade, it may cost a lot on the long term ...
|
|
|
|
|