1 Introduction
2 ------------
3
4 See docs/index.html for the libxml2dom documentation.
5
6 Contact, Copyright and Licence Information
7 ------------------------------------------
8
9 The current Web page for libxml2dom at the time of release is:
10
11 http://www.boddie.org.uk/python/libxml2dom.html
12
13 Copyright and licence information can be found in the docs directory - see
14 docs/COPYING.txt for more information.
15
16 Dependencies
17 ------------
18
19 libxml2 Tested with libxml2 2.6.17.
20 Use --with-python=<path to python executable> if building from
21 source. Previous releases of libxml2 in the 2.6 series may work,
22 but releases before 2.6.16 are not recommended.
23 Python Tested with Python 2.4.
24 Python releases from 2.2 onwards should be compatible with
25 libxml2dom. The principal requirement from such releases is the
26 new-style class support which permits the use of properties in
27 the libxml2dom implementation.
28
29 Testing
30 -------
31
32 Some of the tests require libxml2macro.py to be run on the test source code
33 first. Read the docstrings for the various test files before attempting to run
34 any of them. See also docs/NOTES_libxml2macro.txt for more information.
35
36 Issues
37 ------
38
39 Use of importNode seems to cause some kind of memory issue, probably related
40 to nodes being shared across documents. This was observed in libxml2 2.6.0 but
41 appears to be fixed in libxml2 2.6.16.
42
43 Even compared to minidom, importNode may seem very slow (even the
44 libxml2dom.macrolib implementation, too). A way is needed to get libxml2 to do
45 the node copying itself.
46
47 New in libxml2dom 0.2.1 (Changes since libxml2dom 0.2)
48 ------------------------------------------------------
49
50 * Moved libxml2macro script to the tools directory.
51 * Added getElementsByTagNameNS.
52 * Added a normalize implementation.
53 * Added HTML parsing support.
54 * Added prettyprinting support.
55 * Fixed parseURI.
56 * Introduced better testing for Unicode objects, especially since things
57 like rdflib like to subclass the unicode type, and it might be more
58 convenient to detect such subclasses and convert their values
59 automatically.
60 * Improved some of the API documentation.
61 * Introduced better suppression of warnings, network access, and other
62 potentially intrusive libxml2 features.
63 * Reorganised the documentation, expanding the README.txt file at the
64 expense of the HTML documentation, but removing older, less relevant
65 information.
66 * Added Debian package support.
67
68 New in libxml2dom 0.2 (Changes since libxml2dom 0.1.3)
69 ------------------------------------------------------
70
71 * Adopted libxml2macro code within the libxml2dom classes, removing any
72 dependencies on the libxml2 module - this makes everything much faster
73 and virtually removes any necessity to use libxml2macro.
74 * Improved attribute and document node handling.
75 * Introduced document reference management.
76 * Introduced NodeList wrapper objects.
77
78 New in libxml2dom 0.1.3 (Changes since libxml2dom 0.1.2)
79 --------------------------------------------------------
80
81 * Fixed createElement.
82 * Introduced experimental libxml2macro tools, tests and libraries.
83
84 New in libxml2dom 0.1.2 (Changes since libxml2dom 0.1.1)
85 --------------------------------------------------------
86
87 * Fixed getAttributeNode and getAttributeNodeNS.
88 * Added comment node creation.
89 * Fixed empty namespace usage with elements and attributes.
90 * Introduced usage of the libxml2 file and memory parsing features.
91 * Introduced suppression of DTD retrieval and validation as the default
92 behaviour.
93 * Added experimental XPath method support.
94
95 New in libxml2dom 0.1.1
96 -----------------------
97
98 * Fixed text node creation.
99 * Fixed setAttributeNS.
100 * Added encoding parameters to convenience methods.
101 * Added the missing previousSibling property.
102 * Added release number to the package.
103
104 Release Procedures
105 ------------------
106
107 Update the libxml2dom/__init__.py and libxml2dom/macrolib/__init__.py
108 __version__ attributes.
109 Change the version number and package filename/directory in the documentation.
110 Change code examples in the documentation if appropriate.
111 Update the release notes (see above).
112 Update the package release notes (in the packages directory).
113 Check the setup.py file and ensure that all package directories are mentioned.
114 Check the release information in the PKG-INFO file and in the package
115 changelog (and other files).
116 Tag, export.
117 Archive, upload.
118 Make packages (see below).
119 Update PyPI, PythonInfo Wiki, Vaults of Parnassus entries.
120
121 Making Packages
122 ---------------
123
124 To make Debian-based packages:
125
126 1. Create new package directories under packages if necessary.
127 2. Make a symbolic link in the distribution's root directory to keep the
128 Debian tools happy:
129
130 ln -s packages/ubuntu-hoary/python2.4-libxml2dom/debian/
131
132 3. Run the package builder:
133
134 dpkg-buildpackage -rfakeroot
135
136 4. Locate and tidy up the packages in the parent directory of the
137 distribution's root directory.