Fred Drake
dad91dd1e9
Make sure XMLGenerator uses quoteattr() instead of escape() to quote
...
attribute values. Just using escape() can (and always has) led to broken
XML being generated. This makes sure it always produces the right thing.
This actually closes SF bug #440351 .
2001-08-07 19:14:46 +00:00
Fred Drake
acd32d3be5
Added function xml.sax.saxutils.quoteattr().
...
This closes SF bug #440351 . It should not be moved to Python 2.1.1.
2001-07-19 16:10:15 +00:00
Fred Drake
95b4ec5fbe
Do not assume that types.UnicodeType exists; we might be running in an old
...
version of Python. ;-(
2000-12-16 01:45:11 +00:00
Lars Gustäbel
4ced5e7675
Fix bug in prepare_input_source (patched by Paul P., sourceforge.net down
...
now, so can't find number).
2000-10-24 15:53:12 +00:00
Fred Drake
16f6329e61
Make reindent.py happy (lots of trailing whitespace removed).
2000-10-23 18:09:50 +00:00
Lars Gustäbel
bc1b5c81a5
Added parent attribute with getters and setters on XMLFilterBase.
2000-10-11 22:35:00 +00:00
Martin v. Löwis
5fece7fc1b
Don't use a file object as system id; try to propagate the file name to
...
the InputSource.
2000-10-06 21:11:20 +00:00
Martin v. Löwis
cf0a1cc417
Support non-namespace elements in *ElementNS of XMLGenerator.
2000-10-03 22:35:29 +00:00
Fred Drake
0872e05851
Fix handling of file inputs on Windows; passing them to urllib.urlopen()
...
caused the drive letter to cause urlopen() to think it was an unrecognized
URL scheme. This only passes system ids to urlopen() if the file does not
exist. It works on Windows & Unix.
It should work everywhere else as well.
2000-09-26 17:23:09 +00:00
Martin v. Löwis
58af43fd76
[Patch 101634]
...
xml.sax: Fix parse and parseString not to rely on ExpatParser
Greatly simplify import logic by using __import__
saxutils: Support Unicode strings and files as parameters to
prepare_input_source
2000-09-24 21:31:06 +00:00
Lars Gustäbel
523b0a6ec8
Added back the InputSource class (patch 101630).
2000-09-24 18:54:49 +00:00
Lars Gustäbel
fc643c339d
Bug fix to namespace handling in XMLGenerator (now adds declarations).
...
Bug fixes to XMLFilterBase (wrong ignorableWhitespace signature and
did not inherit set*Handler methods from XMLReader.)
2000-09-24 10:53:31 +00:00
Lars Gustäbel
c5cec51b95
Updated XMLGenerator to new DocumentHandler interface (patch 101572).
2000-09-21 08:25:28 +00:00
Fred Drake
a12adfe485
Reduce the number of imports needed.
...
Make the code conform better to the Python style guide.
2000-09-18 17:40:22 +00:00
Paul Prescod
bd8c2ae758
Removed unncessary dependency.
2000-07-01 19:19:32 +00:00
Fred Drake
45cd9de2bb
Paul Prescod <paul@prescod.net>:
...
SAX interfaces for Python.
2000-06-29 19:34:54 +00:00