| 1 |
Change History for XML-DOM: |
| 2 |
|
| 3 |
1.46 (tjmather) 09/21/2016 |
| 4 |
- Correct name passed to WriteMakefile to XML::DOM (was XML/Dom) |
| 5 |
|
| 6 |
1.45 (tjmather) 08/16/2015 |
| 7 |
- Fix pod errors and a typo ( Florian Schlichting ) |
| 8 |
- properly encode output for printToFile ( Martin Ferrari, Gregor Herrmann ) |
| 9 |
|
| 10 |
1.44 (tjmather) 07/25/2005 |
| 11 |
- Only use 'use bytes' where needed (by XML::RegExp) (Gisle Aas) |
| 12 |
|
| 13 |
1.43 (tjmather) 07/28/2003 |
| 14 |
- Fixed bug that manifests itself with XML::Parser 2.32 and greater, |
| 15 |
specify external style as 'XML::Parser::Dom' rather than just 'Dom'. |
| 16 |
(Matt Sergeant) |
| 17 |
|
| 18 |
1.42 (tjmather) 12/05/2002 |
| 19 |
- Fixed bug where XML::DOM doesn't encode some characters in |
| 20 |
attribute values under Perl 5.8.0 (Steve Hay) |
| 21 |
- Added t/dom_encode.t test to check encoding on attribute values |
| 22 |
- Fixed warning message and use in XML::DOM::PerlSAX (Mike Castle) |
| 23 |
|
| 24 |
1.41 (tjmather) 10/19/2002 |
| 25 |
- included XML-Parser-2.31.patch, required for XML::Parser |
| 26 |
to work with 5.8.0 unicode |
| 27 |
- use utf8 in unicode test scripts, fixes 5.8.0 test failures |
| 28 |
NOTE - you should use the utf8 pragma in your programs if you |
| 29 |
are passing utf8 to XML::DOM. |
| 30 |
- only use encodeText for Perl < 5.6.0 |
| 31 |
- replace match w/ substitution in AttDef::new, workaround for 5.8.0 unicode |
| 32 |
- replace match w/ substitution in Default handler for non-paramter |
| 33 |
entity reference, workaround for 5.8.0 unicode |
| 34 |
|
| 35 |
1.40 (tjmather) 10/13/2002 |
| 36 |
- Fixed problem when defining user LWP object (Willems Luc) |
| 37 |
- Autodetect whether to 'use bytes' (Ed Avis) |
| 38 |
- Added dispose method to XML::DOM::Parser Synopsis (Ruben Diez) |
| 39 |
- Fixed warning message in Attr.getValue method (Christian Lizell) |
| 40 |
|
| 41 |
1.39 (tjmather) 04/16/2002 |
| 42 |
- Deletes value if both System ID and value are defined |
| 43 |
(Brian Thomas) |
| 44 |
- Fixed bug, now TextNode->getData doesn't expand entities when |
| 45 |
NoExpand => 1, added t/dom_noexpand.t test script (Brian Thomas) |
| 46 |
|
| 47 |
1.38 (tjmather) 04/05/2002 |
| 48 |
- Removed bin/pretty.pl, it is now in XML-Filter-Reindent |
| 49 |
- Removed return from addCDATA function to fix memory leak |
| 50 |
(Steve Hay) |
| 51 |
- Added missing _to_sax method to ProcessingInstruction class |
| 52 |
(Patrick Whittle) |
| 53 |
- Removed extranous debugging statement from ExternEnt subroutine |
| 54 |
(Jon Grov) |
| 55 |
|
| 56 |
1.37 (tjmather) 02/15/2002 |
| 57 |
- parameter should be last argument of DocumentType::addEntity |
| 58 |
(Patrick Whittle) |
| 59 |
|
| 60 |
1.36 (tjmather) 01/04/2002 |
| 61 |
- Replaced 'our' with 'my' in t/dom_text.t, to work with perl < 5.6.0 |
| 62 |
|
| 63 |
1.35 (tjmather) 10/26/2001 |
| 64 |
- Fixed bug with XML::DOM::Comment::_to_sax (Mark Pundsack) |
| 65 |
- Added test for XML::DOM::Text::splitText (Michael Guennewig) |
| 66 |
|
| 67 |
1.34 (tjmather) 10/07/2001 |
| 68 |
- Fixed bug with XML::DOM::Text::splitText (Michael Guennewig) |
| 69 |
- The '>' character is now encoded in attribute values (Stephen Crowley) |
| 70 |
- hasFeature now is case-insensitve for name of feature and |
| 71 |
the version defaults to 1.0, in accordance with the DOM 1.0 |
| 72 |
standard. (Wolfgang Mauerer) |
| 73 |
|
| 74 |
1.33 (tjmather) 8/29/2001 |
| 75 |
- Added use bytes pragma to XML::DOM to fix unicode problems. |
| 76 |
|
| 77 |
1.32 (tjmather) 8/25/2001 |
| 78 |
- Separated out XML::UM, XML::Filter::* and XML::Builder::* modules |
| 79 |
into separate distributions (Idea of Matt Sergeant, as discussed |
| 80 |
on [email protected]) |
| 81 |
- Removed dependency on Parse::Yapp - shouldn't have been there in the first |
| 82 |
place. |
| 83 |
|
| 84 |
1.31 (tjmather) 6/26/2001 |
| 85 |
- Added dependency check for XML::RegExp in Makefile.PL |
| 86 |
|
| 87 |
1.30 (tjmather) 6/20/2001 |
| 88 |
- XML::RegExp, XML::XQL, and XML::Checker separated out from libxml-enno, |
| 89 |
and libxml-enno renamed to XML-DOM. |
| 90 |
|
| 91 |
libxml-enno-1.05 (tjmather) 5/14/2001 |
| 92 |
|
| 93 |
- DOM: Fixed XML/DOM.pm to include forward declaration for |
| 94 |
XML::DOM::DocumentType (Oleh Khoma and Wolfgang Gassner) |
| 95 |
|
| 96 |
libxml-enno-1.04 (tjmather) 3/20/2001 |
| 97 |
|
| 98 |
- DOM: Fixed XML::DOM::DocumentType::replaceChild to call |
| 99 |
SUPER::replaceChild instead of SUPER::appendChild (John Salmon) |
| 100 |
- DOM: Fixed XML::DOM::Text::splitText to use substr instead of |
| 101 |
(non-existant) substring and insertBefore instead of (non-existant) |
| 102 |
insertAfter (Duncan Cameron) |
| 103 |
- DOM: Fixed XML::DOM::Text::print to encode '>' and '"' (John Cope) |
| 104 |
- DOM: Added code to convert Model argument of XML::Parser::Dom::Element |
| 105 |
from XML::Parser::ContentModel to string. XML::Parser >= 2.28 passes |
| 106 |
a XML::Parser::ContentModel object for the model arg of the Element handler |
| 107 |
while earlier versions passed a string. Fixed cannot find equals |
| 108 |
method in XML::Parser::ContentModel in dom_extent.t. |
| 109 |
- DOM: Updated XML::DOM::Entity and XML::Parser::Dom::Entity to reflect |
| 110 |
new Entity handler API in XML::Parser >= 2.28. There is a new isParam |
| 111 |
parameter and the name no longer starts with '%' if it is a parameter |
| 112 |
entity. |
| 113 |
- DOM: Fixed errors in test cases t/build_dom.t t/dom_attr.t by changing |
| 114 |
hair (none | blue | yellow) "yellow" to hair (none|blue|yellow) 'yellow' |
| 115 |
Also fixed t/dom_jp_attr by changing equivalent japanese text. |
| 116 |
- DOM: Fixed errors in test cases t/dom_print.t and t/dom_jp_print.t |
| 117 |
by changing <!ELEMENT doc (beavis | butthead)*> to |
| 118 |
<!ELEMENT doc (beavis|butthead)*> |
| 119 |
- DOM: Fixed error in test 3 of t/dom_jp_attr.t under Perl 5.6.0 |
| 120 |
by changing $FILE->print("$name $type") in XML::DOM::AttDef::print. |
| 121 |
|
| 122 |
libxml-enno-1.02 (enno) 3/2/2000 |
| 123 |
- This release fixes some installation related stuff. |
| 124 |
|
| 125 |
- Changed =head3 pod directives to =head2 in XML/Checker.pm |
| 126 |
This used to cause warnings when generating the man pages with pod2man. |
| 127 |
- Changed dependency of XML::Parser::PerlSAX to require version 0.07. |
| 128 |
libxml-perl 0.06 had a bad version number, causing a warning when doing 'make'. |
| 129 |
- Removed the libxml-enno.ppd file from the distribution. As Matt Sergeant |
| 130 |
pointed out, these PPD files are platform dependant and you can generate |
| 131 |
them yourselves with 'make ppd'. If you still need one, try Simon Oliver's |
| 132 |
website (see below.) |
| 133 |
|
| 134 |
libxml-enno-1.01 (enno) 2/17/2000 |
| 135 |
- This release contains XML::DOM 1.27, XML::XQL 0.63 and XML::Checker 0.09. |
| 136 |
|
| 137 |
- Added FAQ.xml (Needs more stuff.) |
| 138 |
- Added dependencies in Makefile.PL for LWP::UserAgent and XML::Parser::PerlSAX. |
| 139 |
See Makefile.PL for details. |
| 140 |
- Fixed XML::Filter::SAXT (a PerlSAX that works like Unix' tee command.) |
| 141 |
- Renamed XML::DOM::PerlSAX to XML::Handler::BuildDOM. A warning will be issued |
| 142 |
with -w if your code uses XML::DOM::PerlSAX. The reason for this change |
| 143 |
is that the new name is more consistent with how other PerlSAX related |
| 144 |
classes are named. |
| 145 |
Also added a test case for it in t/build_dom.t. |
| 146 |
- Added XML::Filter::DetectWS, a first stab at a PerlSAX filter that detects |
| 147 |
ignorable whitespace. Needs more testing! |
| 148 |
- Added XML::Filter::Reindent, a first stab at a PerlSAX filter that removes and |
| 149 |
inserts whitespace into the PerlSAX event stream to reindent the XML document |
| 150 |
for pretty printing functionality. Needs more testing! |
| 151 |
- Added XML::Handler::Composer. Yet another XML printer/writer that has several |
| 152 |
features missing in other implementations. |
| 153 |
See docs for details. Needs more testing! |
| 154 |
- Added bin/pretty.pl, an XML pretty printer that uses the previous 3 classes. |
| 155 |
- Added XML::UM for encoding support when printing XML. Needs more testing! |
| 156 |
- Added XML::Handler::PrintEvents for debugging PerlSAX filters/producers. |
| 157 |
- Added a PPM description called: libxml-enno.ppd |
| 158 |
I have no idea whether or how it works, so let me know! |
| 159 |
(Thanks to Simon Oliver <[email protected]>, who has more package |
| 160 |
files at http://www.bi.umist.ac.uk/packages) |
| 161 |
|
| 162 |
- DOM: Reimplemented all Node types as a blessed array reference instead of a |
| 163 |
blessed hash reference. This should speed things up and consume less memory. |
| 164 |
Downside is that the code is harder to read and it's harder to extend the Node |
| 165 |
classes. |
| 166 |
- DOM: In XML::DOM::Element, attributes are stored in a NamedNodeMap with the |
| 167 |
hash key 'A' (i.e. _A). Previously, the NamedNodeMap object was created even |
| 168 |
if there were no attributes. For speed and memory reasons, we now create the |
| 169 |
NamedNodeMap objects only when needed. |
| 170 |
- DOM: The parsefile() method of XML::DOM::Parser now supports URLs. |
| 171 |
It uses LWP to download the remote file. See XML::DOM::Parser documentation |
| 172 |
for more info. This probably belongs in XML::Parser. |
| 173 |
- DOM: Added new test cases in t/dom_jp_*.t and a Japanese XML file in |
| 174 |
samples/minutes.xml. |
| 175 |
(Thanks to OKABE, Keiichi <[email protected]>) |
| 176 |
- DOM: Added support for parameter entity references (e.g. %pent;) in the DTD. |
| 177 |
If the reference points to a SYSTEM entity and XML::Parser read and expanded |
| 178 |
it (ParseParamEnt=1) and XML::DOM::Parser option ExpandParamEnt=0, then it will |
| 179 |
still add the contents of the entity to the DTD, but the nodes are flagged as |
| 180 |
'Hidden'. In this case, it will also add an EntityReference node to the DTD. |
| 181 |
The Hidden nodes are skipped when printing, so this way you can suppress the |
| 182 |
expansion of external parameter entity references. Note that we still want to |
| 183 |
add these hidden nodes to the DTD, because they might contain e.g. ENTITY |
| 184 |
declarations that can be referenced further in the document. |
| 185 |
See new testcase t/dom_extent.t. |
| 186 |
(Thanks to Guillaume Rouchy <[email protected]>) |
| 187 |
|
| 188 |
libxml-enno-1.00 (enno) 10/26/1999 |
| 189 |
- This is the first version of libxml-enno. It contains |
| 190 |
XML::DOM 1.26, XML::XQL 0.62 and XML::Checker 0.08. |
| 191 |
See Changes.DOM, Changes.XQL and Changes.Checker for the change history prior |
| 192 |
to libxml-enno. |
| 193 |
|
| 194 |
- I redid the html documentation. Lots of cross links, more info. Check it out! |
| 195 |
- Added XML::DOM::PerlSAX. It's a PerlSAX handler that builds DOM trees. |
| 196 |
- Added XML::Filter::SAXT. It's a PerlSAX handler that forwards the callbacks |
| 197 |
to 2 or more PerlSAX handlers, kind of like the Unix 'tee' command. |
| 198 |
- Added XML::RegExp. It contains regular expressions for several XML tokens, |
| 199 |
as defined in the XML spec. |
| 200 |
|
| 201 |
- DOM: XML::DOM warnings now go thru XML::DOM::warning() |
| 202 |
(which uses warn by default) |
| 203 |
You can redefine XML::DOM::warning() to change this behavior. |
| 204 |
Currently, warning() is called only in one place: |
| 205 |
in XML::DOM::AttListDecl::addAttDef when multiple attribute definitions exist |
| 206 |
for the same attribute. |
| 207 |
- DOM: I added the xql() method to XML::DOM::Node as yet another shortcut to |
| 208 |
perform XQL queries on nodes. Make sure you 'use' XML::XQL and XML::XQL::DOM. |
| 209 |
|
| 210 |
1.25 (enno) 8/24/1999 |
| 211 |
- Removed $`, $' and $& from code to speed up pattern matching in general |
| 212 |
- Fixed replaceChild() to process a DocumentFragment correctly |
| 213 |
(Thanks to Michael Stillwel <[email protected]>) |
| 214 |
- Fixed appendChild, replaceChild and insertBefore for Document nodes, so you |
| 215 |
can't add multiple Element nodes. |
| 216 |
- The XmlDecl field was called XMLDecl in certain place. |
| 217 |
(Thanks to Matt Sergeant <[email protected]>) |
| 218 |
- Fixed the non-recursive getElementsByTagName |
| 219 |
(Thanks to Geert Josten <[email protected]>) |
| 220 |
|
| 221 |
1.24 (enno) 8/2/1999 |
| 222 |
- Processing Instructions inside an Element node were accidentally added to |
| 223 |
the Document node. |
| 224 |
- Added DOM.gif to the distribution and to the XML::DOM home page |
| 225 |
(http://www.erols.com/enno/dom) which shows a logical view of the DOM |
| 226 |
interfaces. (Thanks to Vance Christiaanse <[email protected]>) |
| 227 |
- Added recurse option (2nd parameter) to getElementsByTagName. When set to 0, |
| 228 |
it only returns direct child nodes. When not specified, it defaults to 1, |
| 229 |
so it should not break existing code. Note that using 0 is not portable to |
| 230 |
other DOM implementations. |
| 231 |
- Fixed the regular expressions for XML tokens to include Unicode values > 127 |
| 232 |
- Removed XML::DOM::UTF8 (it is no longer needed due to previous fix) |
| 233 |
- Fixed encodeText(). In certain cases special characters (like ", < and &) |
| 234 |
would not be converted to " etc. when writing attribute values. |
| 235 |
(Thanks to Alon Salant <[email protected]>) |
| 236 |
- When writing XML, single quotes were converted to &apos instead of ' |
| 237 |
(Thanks to Galactic Taco <[email protected]>) |
| 238 |
|
| 239 |
1.23 (enno) 6/4/1999 |
| 240 |
- Added XML::DOM::setTagCompression to give you control over how empty |
| 241 |
element tags are printed. See XML::DOM documentation for details. |
| 242 |
- Fixed CAVEAT section in XML::DOM documentation to refer to the www-dom |
| 243 |
mailing list (as opposed to xml-dom.) |
| 244 |
|
| 245 |
1.22 (enno) 5/28/1999 |
| 246 |
- The XML::DOM documentation was translated into Japanese by Takanori Kawai |
| 247 |
(aka Hippo2000) at http://member.nifty.ne.jp/hippo2000/perltips/xml/dom.htm |
| 248 |
- Fixed documentation of XML::DOM::Node::removeChild() |
| 249 |
It used to list the exceptions HIERARCHY_REQUEST_ERR, WRONG_DOCUMENT_ERR. |
| 250 |
(Thanks again, Takanori) |
| 251 |
- XML::DOM::Entity::print was putting double quotes around the notation name |
| 252 |
after the NDATA keyword. |
| 253 |
- Added Unparsed handler that calls the Entity handler. |
| 254 |
- Changed implementation of XML::Parser::Dom to use local variables for slight |
| 255 |
performance improvement and easier exception handling. |
| 256 |
- Removed support for old XML::Parser versions (for detecting whether attributes |
| 257 |
were specified or defaulted.) |
| 258 |
People should move to latest XML::Parser (currently version 2.23) |
| 259 |
- If an ENTITY value was e.g. '"', it would be printed as """ |
| 260 |
(Thanks to Raimund Jacob <[email protected]>) |
| 261 |
|
| 262 |
1.21 (enno) 4/27/1999 |
| 263 |
- Fixed Start handler to work with new method specified_attr() in |
| 264 |
XML::Parser 2.23 |
| 265 |
|
| 266 |
1.20 (enno) 4/16/1999 |
| 267 |
- Fixed getPreviousSibling(). If the node was the first child, it would return |
| 268 |
the last child of its parent instead of undef. |
| 269 |
(Thanks to Christoph StueckJuergen <[email protected]>) |
| 270 |
|
| 271 |
1.19 (enno) 4/7/1999 |
| 272 |
- Fixed memory leak: Final handler did not call dispose on a temporarily |
| 273 |
created DocumentType object that was no longer needed. |
| 274 |
(Thanks to Loic Dachary <[email protected]>) |
| 275 |
- Fixed DocumentType::removeChildhoodMemories (which is called by dispose) |
| 276 |
to work correctly when the DocumentType node is already decoupled from |
| 277 |
the document. |
| 278 |
|
| 279 |
1.18 (enno) 3/15/1999 |
| 280 |
- Fixed typo "DOM::XML::XmlUtf8Encode" in expandEntityRefs() to |
| 281 |
XML::DOM::XmlUtf8Encode. |
| 282 |
(Thanks to Manessinger Andreas <[email protected]>) |
| 283 |
- XML::Parser 2.20 added the is_defaulted method, which improves performance |
| 284 |
a bit when used. Benchmark (see below) went from 6.50s to 6.07s (7%) |
| 285 |
You don't have to upgrade to 2.20, this change is backwards compatible. |
| 286 |
- Copied node constants (e.g. ELEMENT_NODE) from XML::DOM::Node to XML::DOM, |
| 287 |
so you can use ELEMENT_NODE instead of XML::DOM::ELEMENT_NODE. |
| 288 |
The old style will still work. |
| 289 |
- Fixed XmlUtf8Decode to add 'x' when printing hex entities (not used by |
| 290 |
XML::DOM module, but other people might want to use it at some point) |
| 291 |
- Fixed typo: DocumentType::getSysid should have been getSysId. |
| 292 |
(Thanks to Bruce Kaskel <[email protected]>) |
| 293 |
- Added DocumentType::setName, setSysId, setPubId |
| 294 |
- Added Document::createDocumentType |
| 295 |
- DocumentType::print no longer prints the square brackets if it has |
| 296 |
no entities, notations or other children. (Thanks again, Bruce) |
| 297 |
- The MacOS related bugs in the testcases etc. should all be fixed. |
| 298 |
(Thanks to Arved Sandstrom <[email protected]> and |
| 299 |
Chris Nandor <[email protected]>) |
| 300 |
- Added code to ignore Text Declarations from external parsed entities, i.e. |
| 301 |
<?xml version....?> They were causing exceptions like |
| 302 |
"XML::DOM::DOMException(Code=5, Name=INVALID_CHARACTER_ERR, Message=bad |
| 303 |
Entity Name [] in EntityReference)" |
| 304 |
(Thanks to Marcin Jagodzinski <[email protected]>) |
| 305 |
|
| 306 |
1.17 (enno) 2/26/1999 (This release was never deployed to CPAN) |
| 307 |
- Added XML::DOM::UTF8 module which exploits Perl's new utf8 capabilities |
| 308 |
(version 5.005_55 recommended.) If you don't use/require this module, XML::DOM |
| 309 |
will work as it did before. If you do use/require it, it allows Unicode |
| 310 |
characters with character codes > 127 in element and attibute names etc. |
| 311 |
See XML::DOM::UTF8 man page for details. Note that this module hasn't been |
| 312 |
tested thoroughly yet. |
| 313 |
- Fixed Makefile.PL, it would accidentally install CheckAncestors.pm and |
| 314 |
CmpDOM.pm which were only meant for the test cases. |
| 315 |
- Added allowReservedNames, setAllowReservedNames to support checking for |
| 316 |
reserved XML Names (element/attribute/entity/etc. names starting with "xml") |
| 317 |
- Changed some print methods (in the DOCTYPE section) to use "\xA" as |
| 318 |
an end-of-line delimiter instead of "\n". Since XML::Parser (expat) converts |
| 319 |
all end-of-line sequences to "\xA", it makes sense that the print routines |
| 320 |
are consistent with that. |
| 321 |
- Fixed the testcases to convert "\n" to "\xA" before comparing test |
| 322 |
results with expected results, so that they also work on Mac OS. |
| 323 |
|
| 324 |
1.16 (enno) 2/23/1999 |
| 325 |
- Added XML::DOM::Element::setTagName |
| 326 |
- Methods returning NodeList objects will now return regular perl lists when |
| 327 |
called in list context, e.g: |
| 328 |
@list = $elem->getChildNodes; # returns a list |
| 329 |
$nodelist = $elem->getChildNodes; # return a NodeList (object reference) |
| 330 |
Note that a NodeList is 'live' (except the one returned by |
| 331 |
getElementsByTagName) and that a list is not 'live'. |
| 332 |
- Fixed getElementsByTagName. |
| 333 |
- It would return the node that it was called on (if the tagName matched) |
| 334 |
- It would return the nodes in the wrong order (they should be in |
| 335 |
document order) |
| 336 |
|
| 337 |
1.15 (enno) 2/12/1999 |
| 338 |
- 28% Performance improvements. Benchmark was the following program: |
| 339 |
|
| 340 |
use XML::DOM; |
| 341 |
$dom = XML::DOM::Parser->new; |
| 342 |
my $doc = $dom->parsefile ("samples/REC-xml-19980210.xml"); |
| 343 |
|
| 344 |
Running it 20 times on a Sun Ultra-1, using the ksh function 'time', |
| 345 |
the average time was 9.02s (real time.) XML::Parser 2.19, Perl 5.005_02. |
| 346 |
As a comparison, XML-Grove-0.05 takes 2.17s running: |
| 347 |
|
| 348 |
use XML::Parser; |
| 349 |
use XML::Parser::Grove; |
| 350 |
use XML::Grove; |
| 351 |
|
| 352 |
$parser = XML::Parser->new(Style => 'Grove'); |
| 353 |
$grove = $parser->parsefile ("samples/REC-xml-19980210.xml"); |
| 354 |
|
| 355 |
And XML::Parser 2.19 takes 0.71s running (i.e. building nothing): |
| 356 |
|
| 357 |
use XML::Parser; |
| 358 |
$parser = XML::Parser->new; |
| 359 |
$parser->parsefile ("samples/REC-xml-19980210.xml"); |
| 360 |
|
| 361 |
XML-Grove-0.40alpha takes 4.62s running the following script: |
| 362 |
|
| 363 |
use XML::Grove::Builder; |
| 364 |
use XML::Parser::SAXPerl; |
| 365 |
$grove_builder = XML::Grove::Builder->new; |
| 366 |
$parser = XML::Parser::SAXPerl->new ( Handler => $grove_builder ); |
| 367 |
$document = $parser->parse ( Source => { |
| 368 |
SystemId => "samples/REC-xml-19980210.xml" } ); |
| 369 |
|
| 370 |
Each following improvement knocked a few tenths of a second off: |
| 371 |
|
| 372 |
- Reimplemented the ReadOnly mechanism, because it was spending a lot of |
| 373 |
time in setReadOnly when parsing large documents (new time: 8.00s) |
| 374 |
- Hacked appendChild to squeeze out a little speed (new time: 7.70s) |
| 375 |
- Eliminated calls to addText in the Start handler which had to figure out |
| 376 |
every time wether it should add a piece of text to a previous text node. |
| 377 |
Now I keep track of whether the previous node was a text node in the |
| 378 |
XML::DOM::Parser code and take care of adding the text and creating a |
| 379 |
new Text node right there, without the overhead of several function calls |
| 380 |
(new time: 6.45s) |
| 381 |
|
| 382 |
1.14 (enno) 15/1/1999 |
| 383 |
- Bug in Document::dispose - it tried to call dispose on XMLDecl even |
| 384 |
if it didn't exist |
| 385 |
- Bug with XML::Parser 2.19 (and up): |
| 386 |
XML::Parser 2.19 added support for CdataStart and CdataEnd handlers which |
| 387 |
will call the Default handler instead if those handlers aren't defined. |
| 388 |
This caused the exception "XML::DOM::DOMException(Code=5, Name=INVALID_CHARACTER_ERR, Message=bad Entity Name [] in EntityReference)" |
| 389 |
whenever it encountered a CDATASection. |
| 390 |
(Thanks to Roger Espinosa <[email protected]>) |
| 391 |
- Added a new XML::DOM::Parser option 'KeepCDATA' which will store CDATASections |
| 392 |
as CDATASection nodes instead of converting them to Text nodes (which is the |
| 393 |
default/old behavior) |
| 394 |
- Fixed bug in CDATASection print routine. It printed "<!CDATA[" instead of |
| 395 |
"<![CDATA[". |
| 396 |
|
| 397 |
1.13 (enno) 12/21/1998 |
| 398 |
- (Bug introduced by 1.12) Could not replace the Document root element with |
| 399 |
replaceChild. (Thanks again, Francois) |
| 400 |
|
| 401 |
1.12 (enno) 12/18/1998 |
| 402 |
- Attr::print doesn't print a leading space anymore and Element::print does |
| 403 |
print the space. This should affect hardly anybody. |
| 404 |
- Added test for HIERARCHY_REQUEST_ERR to Node::replaceChild |
| 405 |
- getChildNodes now returns empty NodeList for Nodes that can't have kids |
| 406 |
(instead of undef) |
| 407 |
- Fixed bug in removeAttribute. It would throw an exception. |
| 408 |
(Thanks to Francois Belanger <[email protected]>) |
| 409 |
- removeChildNodes was using $_, which was somehow messing up the global $_. |
| 410 |
(Thanks again, Francois) |
| 411 |
|
| 412 |
1.11 (enno) 12/16/1998 |
| 413 |
- Fixed checking of XML::Parser version number. Newer versions should be |
| 414 |
allowed as well. Current version works with XML::Parser 2.17. |
| 415 |
(Thanks to Martin Kolbuszewski <[email protected]>) |
| 416 |
- Fixed typo in SYNOPSIS: "print $node->getValue ..." should have been |
| 417 |
"print $href->getValue ..." (Thanks again Martin) |
| 418 |
- Fixed typo in documentation: 'getItem' method should have been 'item' |
| 419 |
(in 2 places.) (Thanks again Martin) |
| 420 |
|
| 421 |
1.10 (enno) 12/8/1998 |
| 422 |
- Attributes with non-alphanumeric characters in the attribute name (like "-") |
| 423 |
were mistaken for default attribute values. (Bug in checkUnspecAttr regexp.) |
| 424 |
Default attribute values aren't printed out, so it appeared those attributes |
| 425 |
just vanished. |
| 426 |
(Thanks to Aravind Subramanian <[email protected]>) |
| 427 |
|
| 428 |
1.09 (enno) 12/3/1998 |
| 429 |
- Changed NamedNodeMap {Values} to a NodeList instead of [] |
| 430 |
This way getValues can return a (live) NodeList. |
| 431 |
- Added NodeList and NamedNodeMap to documentation |
| 432 |
- Fixed documentation section near list of node type constants. |
| 433 |
I accidentally pasted some text in between and messed up that whole section. |
| 434 |
- getNodeTypeName() always returned empty strings and the documentation |
| 435 |
said @XML::DOM::NodeNames, which should have been @XML::DOM::Node::NodeNames |
| 436 |
(Thanks to Andrew Fitzhugh <[email protected]>) |
| 437 |
- Added dispose to NodeList |
| 438 |
- Added setOwnerDocument to all Nodes, NodeList and NamedNodeMap, to allow |
| 439 |
cut and paste between XML::DOM::Documents. |
| 440 |
It does nothing when called on a Document node. |
| 441 |
|
| 442 |
1.08 (enno) 12/1/1998 |
| 443 |
- No changes - I messed up uploading to PAUS and had to up the version number. |
| 444 |
|
| 445 |
1.07 (enno) 12/1/1998 |
| 446 |
- added Node::isElementNode for optimization |
| 447 |
- added NamedNodeMap::getChildIndex |
| 448 |
- fixed documentation regarding getNodeValue. It said it should return |
| 449 |
getTagName for Element nodes, but it should return undef. |
| 450 |
(Thanks to Aravind Subramanian <[email protected]>) |
| 451 |
- added CAVEATS in documentation (getElementsByTagName does not return "live" |
| 452 |
NodeLists) |
| 453 |
- added section about Notation node in documentation |
| 454 |
|
| 455 |
1.06 (enno) 11/16/1998 |
| 456 |
- fixed example in the SYNOPSIS of the man page |
| 457 |
(Thanks to Aravind Subramanian <[email protected]>) |
| 458 |
- added test case t/example.t (it's also a simple example) |
| 459 |
|
| 460 |
1.05 (enno) 11/11/1998 |
| 461 |
- added use strict, use vars etc. |
| 462 |
- fixed replaceData - changed $str to $data |
| 463 |
- merged getElementsByTagName and getElementsByTagName2 |
| 464 |
- added parsing of attributes (CheckUnspecAttr) to support Attr::isSpecified |
| 465 |
- added XML::DOM::Parser class to perform proper cleanup when an exception |
| 466 |
is thrown |
| 467 |
- more performance improvements, e.g. SafeMode, removed SUPER::new |
| 468 |
- added frequency comments for performance optimization: e.g. "REC 7473" |
| 469 |
means that that code is hit 7473 times when parsing REC-xml-19980210.xml |
| 470 |
- updated POD documentation |
| 471 |
- fixed problem in perl 5.004 (can't seems to use references to strings, e.g. |
| 472 |
*str = \ "constant";) |
| 473 |
|
| 474 |
1.04 (enno) 10/21/1998 |
| 475 |
- Removed internal calls to getOwnerDocument, getParentNode |
| 476 |
- fixed isAncestor: $node->isAncestor($node) should return true |
| 477 |
- Fixed ReadOnly mechanism. Added isAlwaysReadOnly. |
| 478 |
- DocumentType::getDefaultAttrValue was using getElementDecl |
| 479 |
instead of getAttlistDecl |
| 480 |
- Attr::cloneNode cloneChildren was missing 2nd parameter=1 (deep) |
| 481 |
- NamedNodeMap::cloneNode forgot to copy {Values} list |
| 482 |
- Element::setAttributeNode was comparing {UsedIn} against $self instead of {A} |
| 483 |
- fixed AttDef::cloneNode, Value was copied wrong |