libxml2dom

README.txt

221:0f189c13e1df
2007-01-08 paulb [project @ 2007-01-08 23:24:19 by paulb] Updated release information.
     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 and docs/LICENCE.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. Note
    35 that such tests are retained for historical purposes and/or curiosity since
    36 libxml2macro.py is no longer supported.
    37 
    38 Issues
    39 ------
    40 
    41 The presence of xmlns attributes in serialised documents was called into
    42 question, and the tests/namespace*.py files attempt to show the current
    43 behaviour of libxml2dom.
    44 
    45 Use of importNode seems to cause some kind of memory issue, probably related
    46 to nodes being shared across documents. This was observed in libxml2 2.6.0 but
    47 appears to be fixed in libxml2 2.6.16.
    48 
    49 Even compared to minidom, importNode may seem very slow (even the
    50 libxml2dom.macrolib implementation, too). A way is needed to get libxml2 to do
    51 the node copying itself.
    52 
    53 New in libxml2dom 0.4 (Changes since libxml2dom 0.3.6)
    54 ------------------------------------------------------
    55 
    56   * Introduced an Implementation class, permitting specialised node creation.
    57   * Added SVG-specific document support.
    58 
    59 New in libxml2dom 0.3.6 (Changes since libxml2dom 0.3.5)
    60 --------------------------------------------------------
    61 
    62   * Added cloneNode almost as a synonym for importNode (which, unlike in the
    63     DOM specification, is present on all nodes).
    64   * Introduced Debian stable package details - suggested by Robert Siemer.
    65   * Changed libxml2mod import details to try libxmlmods - suggested by Lucian
    66     Wischik.
    67 
    68 New in libxml2dom 0.3.5 (Changes since libxml2dom 0.3.4)
    69 --------------------------------------------------------
    70 
    71   * Fixed nodeType for HTML document elements - reported by Robert Siemer.
    72   * Fixed string results from XPath expressions - reported by Robert Siemer.
    73 
    74 New in libxml2dom 0.3.4 (Changes since libxml2dom 0.3.3)
    75 --------------------------------------------------------
    76 
    77   * Attempted to introduce generated prefixes for attributes having namespaces
    78     but whose names are unprefixed.
    79   * Added support for xmlns attribute retrieval (getAttributeNS) and detection
    80     (hasAttributeNS).
    81   * Added the length attribute to NamedNodeMap; renamed the length method on
    82     NodeList, adding a length attribute.
    83 
    84 New in libxml2dom 0.3.3 (Changes since libxml2dom 0.3.2)
    85 --------------------------------------------------------
    86 
    87   * Removed redundant weakref usage.
    88   * Added explicit copyright and licensing information to source files.
    89 
    90 New in libxml2dom 0.3.2 (Changes since libxml2dom 0.3.1)
    91 --------------------------------------------------------
    92 
    93   * Improved the xmlns attribute creation controls.
    94 
    95 New in libxml2dom 0.3.1 (Changes since libxml2dom 0.3)
    96 ------------------------------------------------------
    97 
    98   * Fixed empty namespace declarations on elements created with namespaceURI
    99     set to None. Previously, such declarations were missing.
   100   * Fixed attribute creation and introduced stricter controls over the
   101     construction of xmlns attributes.
   102 
   103 New in libxml2dom 0.3 (Changes since libxml2dom 0.2.4)
   104 ------------------------------------------------------
   105 
   106   * Imposed much stricter tests on strings used with the libxml2dom API.
   107     Strings given as arguments to methods and functions must now only contain
   108     ASCII characters; any other character data must be provided as Unicode
   109     objects. This change fixes various issues with XPath expressions, and
   110     quite probably various other things.
   111   * Fixed parentNode on Document objects (which caused xml.dom.ext.PrettyPrint
   112     to crash).
   113   * Added some support for the doctype attribute and related information.
   114   * libxml2dom is now licensed under the LGPL - see docs/COPYING.txt for
   115     details.
   116 
   117 New in libxml2dom 0.2.4 (Changes since libxml2dom 0.2.3)
   118 --------------------------------------------------------
   119 
   120   * Fixed Unicode conversions in the Node's xpath method.
   121 
   122 New in libxml2dom 0.2.3 (Changes since libxml2dom 0.2.2)
   123 --------------------------------------------------------
   124 
   125   * Fixed the parse function's docstring.
   126   * Added the owner element to obtained attribute nodes.
   127   * Fixed Debian package changelog distribution identifiers.
   128 
   129 New in libxml2dom 0.2.2 (Changes since libxml2dom 0.2.1)
   130 --------------------------------------------------------
   131 
   132   * Fixed exception raising in parseURI, adding a docstring to explain the
   133     current limitations around HTML parsing.
   134 
   135 New in libxml2dom 0.2.1 (Changes since libxml2dom 0.2)
   136 ------------------------------------------------------
   137 
   138   * Moved libxml2macro script to the tools directory.
   139   * Added getElementsByTagNameNS.
   140   * Added a normalize implementation.
   141   * Added HTML parsing support.
   142   * Added prettyprinting support.
   143   * Fixed parseURI.
   144   * Introduced better testing for Unicode objects, especially since things
   145     like rdflib like to subclass the unicode type, and it might be more
   146     convenient to detect such subclasses and convert their values
   147     automatically.
   148   * Improved some of the API documentation.
   149   * Introduced better suppression of warnings, network access, and other
   150     potentially intrusive libxml2 features.
   151   * Reorganised the documentation, expanding the README.txt file at the
   152     expense of the HTML documentation, but removing older, less relevant
   153     information.
   154   * Added Debian package support.
   155 
   156 New in libxml2dom 0.2 (Changes since libxml2dom 0.1.3)
   157 ------------------------------------------------------
   158 
   159   * Adopted libxml2macro code within the libxml2dom classes, removing any
   160     dependencies on the libxml2 module - this makes everything much faster
   161     and virtually removes any necessity to use libxml2macro.
   162   * Improved attribute and document node handling.
   163   * Introduced document reference management.
   164   * Introduced NodeList wrapper objects.
   165 
   166 New in libxml2dom 0.1.3 (Changes since libxml2dom 0.1.2)
   167 --------------------------------------------------------
   168 
   169   * Fixed createElement.
   170   * Introduced experimental libxml2macro tools, tests and libraries.
   171 
   172 New in libxml2dom 0.1.2 (Changes since libxml2dom 0.1.1)
   173 --------------------------------------------------------
   174 
   175   * Fixed getAttributeNode and getAttributeNodeNS.
   176   * Added comment node creation.
   177   * Fixed empty namespace usage with elements and attributes.
   178   * Introduced usage of the libxml2 file and memory parsing features.
   179   * Introduced suppression of DTD retrieval and validation as the default
   180     behaviour.
   181   * Added experimental XPath method support.
   182 
   183 New in libxml2dom 0.1.1
   184 -----------------------
   185 
   186   * Fixed text node creation.
   187   * Fixed setAttributeNS.
   188   * Added encoding parameters to convenience methods.
   189   * Added the missing previousSibling property.
   190   * Added release number to the package.
   191 
   192 Release Procedures
   193 ------------------
   194 
   195 Update the libxml2dom/__init__.py and libxml2dom/macrolib/__init__.py
   196 __version__ attributes.
   197 Change the version number and package filename/directory in the documentation.
   198 Change code examples in the documentation if appropriate.
   199 Update the release notes (see above).
   200 Update the package release notes (in the packages directory).
   201 Check the setup.py file and ensure that all package directories are mentioned.
   202 Check the release information in the PKG-INFO file.
   203 Tag, export.
   204 Archive, upload.
   205 Make packages (see below).
   206 Update PyPI, PythonInfo Wiki, Vaults of Parnassus entries.
   207 
   208 Making Packages
   209 ---------------
   210 
   211 To make Debian-based packages:
   212 
   213   1. Create new package directories under packages if necessary.
   214   2. Make a symbolic link in the distribution's root directory to keep the
   215      Debian tools happy; choose one of the following:
   216 
   217      ln -s packages/ubuntu-hoary/python2.4-libxml2dom/debian/
   218      ln -s packages/debian-stable/python2.3-libxml2dom/debian/
   219 
   220   3. Run the package builder:
   221 
   222      dpkg-buildpackage -rfakeroot
   223 
   224   4. Locate and tidy up the packages in the parent directory of the
   225      distribution's root directory.