| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
"""Sjoerd's version stores unbound methods. that's not good enough ;-)
Here's an alternative implementation of fixdict."""
|
|
|
|
|
|
|
|
|
| |
Fix leaking of instances by removing the elements variable that we
created on closing the parser. The elements variable is now created
in the reset() method, so that the sequence close(); reset();
... works.
Also, add the name of the entity reference that wasn't found to the
error message.
|
|
|
|
|
|
|
|
|
| |
from Python 1.5.1:
If after __init__ finishes no new elements variable was created, this
patch will search the instance's namespace for all attributes whose
name start with start_ or end_ and put their value in a new elements
instance variable.
|
| |
|
|
|
|
|
|
|
|
| |
- Fixed a bug where a syntax error was reported when a document
started with white space. (White space at the start of a document
is valid if there is no XML declaration.)
- Improved the speed quite a bit for documents that don't make use of
namespaces.
|
|
|
|
|
|
|
| |
Here is my current version of xmllib.py and the documentation. This
version has some API changes with respect to the version currently in
Python (also the one in 1.5.2a).
This version supports XML namespaces.
|
|
|
|
|
| |
In literal mode, also don't do anything about entity and character
references, or about closing CDATA elements.
|
|
|
|
|
|
| |
When literal mode is entered it should exit automatically when the
matching close tag of the last unclosed open tag is encountered. This
patch fixes this.
|
|
|
|
|
|
|
|
| |
<sometag attrib=">">
correctly.
Also changed comparisons of re matches and searches into explicit
comparisons with None.
(Sjoerd Mullender)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The main incompatibility is that the error reporting method is now
called as
parser.syntax_error(msg)
instead of
parser.syntax_error(lineno, msg)
This new version also has some code to deal with the <?xml?> and
<!DOCTYPE> tags at the start of an XML document.
The documentation has been updated, and a small test module has been
created.
|
| |
|
|
|