summaryrefslogtreecommitdiff
path: root/CHANGELOG
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-26 20:56:47 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-26 20:56:47 -0500
commit78a10acc8b138b2e19f3f919f2a01ed1be4654d7 (patch)
treedbe3a5d4b93ddf815753b167f3c1032572e2c344 /CHANGELOG
parente101b6b2424de317fcedd95d07ff8b238e27ae7b (diff)
downloadbeautifulsoup4-78a10acc8b138b2e19f3f919f2a01ed1be4654d7.tar.gz
Emit an XML declaration when appropriate.
Diffstat (limited to 'CHANGELOG')
-rw-r--r--CHANGELOG15
1 files changed, 15 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index abdf1b1..4449279 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -99,6 +99,21 @@ sections into ordinary text elements:
In theory it's possible to preserve the CDATA sections when using the
XML parser, but I don't see how to get it to work in practice.
+== Miscellaneous other stuff ==
+
+If the BeautifulSoup instance has .is_xml set to True, an appropriate
+XML declaration will be emitted when the tree is transformed into a
+string:
+
+ <?xml version="1.0" encoding="utf-8">
+ <markup>
+ ...
+ </markup>
+
+The ['lxml', 'xml'] tree builder sets .is_xml to True; the other tree
+builders set it to False. If you want to parse XHTML with an HTML
+parser, you can set it manually.
+
= 3.1.0 =
A hybrid version that supports 2.4 and can be automatically converted