REXML Change Log

3.1.7.3 (1304)

Since previous minor release (1198)

Executive Summary
2008-01-19T22:27:10.211587Z
1304
Version 
ser
2008-01-19T22:22:32.427626Z
1303
Tagged for 
ser
2008-01-13T18:39:40.594939Z
1301
Don't blow up on empty documents
rubys
2008-01-12T21:02:23.192535Z
1300
Add a test case for sorted attributes
rubys
2008-01-11T19:15:54.555785Z
1299
Making the output predictable simplifies unit tests, and doesn't cost
much given that most xml element have few attributes
rubys
2008-01-11T18:17:38.076504Z
1298
Ruby 1.9 revision 14922 is more strict
rubys
2008-01-10T19:13:40.324567Z
1297
Complete Ticket #134
rubys
2008-01-10T05:21:23.189436Z
1296
First installment towards addressing Ticket #134
rubys
2008-01-09T17:44:46.335093Z
1295
Fix for ticket 121
rubys
2008-01-09T17:01:07.551607Z
1294
Fix for ticket 124
rubys
2008-01-09T16:58:01.292761Z
1293
Fix for ticket 128
rubys
2008-01-09T16:43:33.844354Z
1292
Fix ticket 133
rubys
2008-01-09T16:39:37.568660Z
1291
Ticket 131 (Support Ruby 1.9)
rubys
2008-01-09T16:12:48.964501Z
1290
Fix for ticket # 127
rubys
2008-01-09T15:57:58.587953Z
1289
Fix for ticket 123
rubys
2008-01-09T15:17:55.349284Z
1288
Add missing data needed by test case
rubys
2007-10-04T01:21:12.085910Z
1287
r1433@bean: ser | 2007-10-03 17:02:32 -0400
Missing include for UndefinedNamespaceException was causing errors in some
cases.
ser
2007-10-03T12:36:41.316170Z
1286
r1428@bean: ser | 2007-10-03 08:37:10 -0400
Fixes ticket:110
ser
2007-10-02T02:07:24.824809Z
1284
r1387@bean: ser | 2007-10-01 22:05:11 -0400
r1332@bean: ser | 2007-07-28 09:15:15 -0400
r1314@bean (orig r1267): ser | 2007-07-28 08:41:05 -0400
Branched for bug fixes

r1388@bean: ser | 2007-10-01 22:05:13 -0400
r1333@bean: ser | 2007-07-28 09:15:16 -0400
r1322@bean (orig r1270): ser | 2007-07-28 08:48:55 -0400
r1320@bean (orig r1268): ser | 2007-07-28 08:47:01 -0400
r1318@bean: ser | 2007-07-28 08:42:24 -0400
Fixes a bug in the pretty printer related to an incomplete refactoring.

r1389@bean: ser | 2007-10-01 22:05:15 -0400
r1334@bean: ser | 2007-07-28 09:15:17 -0400
r1328@bean (orig r1273): ser | 2007-07-28 09:00:30 -0400
r1309@bean (orig r1263): ser | 2007-07-27 22:51:06 -0400
r1303@bean: ser | 2007-07-27 22:33:00 -0400
Merge code cleanups

r1390@bean: ser | 2007-10-01 22:05:16 -0400
r1335@bean: ser | 2007-07-28 09:15:18 -0400
r1329@bean (orig r1274): ser | 2007-07-28 09:00:34 -0400
r1326@bean (orig r1271): ser | 2007-07-28 08:59:48 -0400
r1324@bean: ser | 2007-07-28 08:53:23 -0400
Fixes another bug related to the formatting code refactoring in 3.1.7

r1399@bean: ser | 2007-10-01 22:05:35 -0400
r1375@bean: ser | 2007-10-01 22:01:48 -0400
r1341@bean (orig r12845): ser | 2007-07-25 09:03:38 -0400
Indentation fix.

r1400@bean: ser | 2007-10-01 22:05:37 -0400
r1376@bean: ser | 2007-10-01 22:01:50 -0400
r1342@bean (orig r12846): nobu | 2007-07-25 17:18:55 -0400
* lib/rexml/formatters/*.rb: set properties.

r1402@bean: ser | 2007-10-01 22:05:40 -0400
r1378@bean: ser | 2007-10-01 22:01:52 -0400
r1358@bean (orig r12883): nobu | 2007-08-06 04:36:31 -0400
* lib/rexml/encodings/{ISO-8859-15,CP-1252}.rb: fixed invalid syntax.

r1403@bean: ser | 2007-10-01 22:05:41 -0400
r1379@bean: ser | 2007-10-01 22:02:23 -0400
r1359@bean (orig r13096): nobu | 2007-08-18 02:03:45 -0400
* lib/rexml/rexml.rb: removed doubled constant.

r1404@bean: ser | 2007-10-01 22:05:44 -0400
r1380@bean: ser | 2007-10-01 22:02:24 -0400
r1360@bean (orig r13097): nobu | 2007-08-18 02:12:48 -0400
* lib/rexml/rexml.rb: added 
ser
2007-10-02T00:58:07.738414Z
1283
r1356@bean: ser | 2007-10-01 20:58:34 -0400
Fix for ticket:115
ser
2007-09-13T12:19:13.548847Z
1282
r1354@bean: ser | 2007-09-13 08:23:09 -0400
Eggbeater missed one.
ser
2007-08-08T10:42:53.076064Z
1281
r1352@bean: ser | 2007-07-29 11:33:07 -0400
Implements namespace validation in the baseparser. This means that, as per
the XML namespace spec, unbound prefixes generate UndefinedNamespaceException.
Also, as per the namespace spec, the 'xml' prefix must be bound to

http://www.w3.org/XML/1998/namespace, and the 'xmlns' prefix must not be
declared.
in the XML.
ser
2007-07-28T15:35:57.650660Z
1280
r1350@bean: ser | 2007-07-28 11:32:07 -0400
Adds a test for ticket:94.
ser
2007-07-28T14:16:13.835830Z
1279
r1348@bean: ser | 2007-07-28 10:12:22 -0400
Adds a test to confirm that ticket:103 was fixed.
ser
2007-07-28T14:04:29.317281Z
1278
r1346@bean: ser | 2007-07-28 10:00:36 -0400
Fixes ticket:102.
Fix provided by kevinj -- thanks! Great job.
ser
2007-07-28T13:42:44.973363Z
1277
r1344@bean: ser | 2007-07-28 09:37:44 -0400
Fixes ticket:99, and adds Henrik's unit test (with minor modifications)
ser
2007-07-28T12:59:50.742902Z
1272
r1325@bean: ser | 2007-07-28 08:55:47 -0400
Adds a unit test for ticket:95, which also exhibits the bug fixed by
changeset:1271
ser
2007-07-28T12:59:48.514235Z
1271
r1324@bean: ser | 2007-07-28 08:53:23 -0400
Fixes another bug related to the formatting code refactoring in 3.1.7
ser
2007-07-28T12:47:03.706059Z
1269
r1319@bean: ser | 2007-07-28 08:42:56 -0400
Adds a unit test for ticket:91 that was fixed by the migration
to abstracted XML formatters.
ser
2007-07-28T12:47:01.954329Z
1268
r1318@bean: ser | 2007-07-28 08:42:24 -0400
Fixes a bug in the pretty printer related to an incomplete refactoring.
ser
2007-07-28T12:28:44.227655Z
1266
r1312@bean: ser | 2007-07-28 08:24:33 -0400
Fixes ticket:101
ser
2007-07-28T02:51:25.914599Z
1265
r1306@bean: ser | 2007-07-27 22:37:50 -0400
More merging fixes
ser
2007-07-28T02:51:23.121976Z
1264
r1305@bean: ser | 2007-07-27 22:34:29 -0400
ser
2007-07-28T02:51:06.221370Z
1263
r1303@bean: ser | 2007-07-27 22:33:00 -0400
Merge code cleanups
ser
2007-07-28T02:51:00.356473Z
1262
r1300@bean: ser | 2007-07-25 08:48:57 -0400
r1298@bean: ser | 2007-07-25 08:40:30 -0400
r1291@bean (orig r12517): ryan | 2007-06-11 20:38:57 -0400
Fixed typo in code. Fixes bug #10420
ser
2007-07-25T00:16:50.050523Z
1259
r1287@bean: ser | 2007-07-24 20:12:25 -0400
Applied patch from Jeff Barczewski. Note that this changes what the values of
the name and IDs are from the previous behavior -- the values no longer include
the quotes. This is the correct behavior, so I'm leaving it in, but it is not
backwards compatible. Also fixes the serializer so that it outputs the doctype
in a correct format (needed as a result of this change).

Addresses ticket:92.
ser
2007-07-25T00:06:01.118565Z
1258
r1285@bean: ser | 2007-07-24 20:02:07 -0400
And THIS goes with the previous two patches. Dammit.
ser
2007-07-24T23:57:32.165630Z
1257
r1283@bean: ser | 2007-07-24 19:53:30 -0400
This goes with the previous commit.
ser
2007-07-24T15:14:05.273151Z
1256
r1281@bean: ser | 2007-07-24 11:08:48 -0400
Addresses ticket:85

This is a major rewrite of the XML formatting code. The XML writers have all
been extracted out of the classes and put into their own class containers.
This makes writing parsers easier, and cleaner.

There are three formatters, which correspond to the previous three XML writing
 modes:

REXML::Formatters::Default
Prints the XML document exactly as it was parsed
REXML::Formatters::Pretty
Pretty prints the XML document, destroying whitespace in the document
REXML::Formatters::Transitive
Pretty prints the XML document, preserving whitespace

All of the write() functions have been deprecated (some are still used, but
these will also go away) except the write() function on Document, which is left
for convenience. To pretty print an XML document the canonical way:

formatter = REXML::Formatters::Pretty.new( 5 ) # indent by 5 spaces
formatter.write( document, output )
ser
2007-06-10T03:28:56.429633Z
1255
r1279@bean: ser | 2007-06-09 23:19:02 -0400
Fixes ticket:89 -- encoding CP-1252 was broken. ISO-8859-15 had the same
 problem.

Also in this patch is a fix to merge.rb (unused, but it should at least
contain no errors), and a unit test for ticket:88.
ser
2007-02-19T13:04:19.216080Z
1251
This doesn't work yet.
ser
2007-02-18T15:12:20.364999Z
1250
* Adds :attribute_quoting to Element#context, allowing users to choose which

character to use to quote attribute values.
* Adds a REVISION attribute to the REXML object, for better version tracking
* Cross-merges some changes from the other branch
ser
2006-12-04T01:41:11.734055Z
1245
Documentation cleanup. Ticket:84
ser
2006-12-04T01:26:44.451203Z
1244
Fixes ticket:80
ser
2006-12-04T00:13:32.366700Z
1243
Adds a unit test for ticket:79
ser
2006-12-02T22:43:03.669731Z
1242
A test to confirm that ticket:77 is closed.
ser
2006-12-01T02:08:56.110091Z
1241
Cross-ported a fix for ticket:88 from CVS.
ser
2006-11-27T01:53:43.470152Z
1239
Addresses ticket:78

NOTE: that this also fixes what is technically another bug in REXML. REXML's
XPath parser used to allow exponential notation in numbers. The XPath spec
is specific about what a number is, and scientific notation is not included.
Therefore, this has been fixed.
ser
2006-11-27T01:11:11.144730Z
1238
Put in a test for ticket:75, which I've been unable to duplicate.
ser
2006-11-27T01:03:53.140707Z
1237
Fixes ticket:71
ser
2006-11-27T00:29:32.545575Z
1236
Addresses ticket:66
ser
2006-11-27T00:14:01.675383Z
1235
* Fixes ticket:61 (xpath_parser)
* Fixes ticket:63 (UTF-16; UNILE decoding was bad)
* Cleans up some tests, removing opportunities for test corruption
* Improves parsing error messages a little
* Adds the ability to override the encoding detection in Source construction
* Fixes an edge case in Functions::string, where document nodes weren't

correctly converted
* Fixes Functions::string() for Element and Document nodes
* Fixes some problems in entity handling
ser
2006-10-15T00:59:00.751739Z
1234
The changeset 1230:1231 was bad. The default behavior is *not* to use the
native REXML encodings by default, but rather to use ICONV by default.
ser
2006-09-25T01:51:37.609266Z
1231
Fixes a bug in multiple decodings
ser
2006-09-24T14:24:06.843099Z
1230
Two unrelated changes, because subversion is retarded and doesn't do
block-level commits:

1) Fixed a typo bug in previous change for ticket:15
2) Fixed namespaces handling in XPath and element.

***** Note that this is an API change!!! *****

Element.namespaces() now returns a hash of namespace mappings which are
relevant for that node.
ser
2006-09-12T18:04:04.932255Z
1229
Typo fix. Goes with 
ser
2006-09-11T12:27:19.584811Z
1228
This goes with ticket:68. Dammit.
ser
2006-09-11T12:26:04.975504Z
1227
Implements ticket:15, using gwrite's suggestion. This allows Element to be
subclassed.
ser
2006-09-11T12:17:38.806154Z
1226
Fixes ticket:68.

NOTE that this involves an API change! Entity declarations in the doctype now
generate events that carry two, not one, arguments.
ser
2006-09-08T01:42:33.283788Z
1222
Cross-patch from Ruby CVS; mostly Nabu edits.
ser
2006-09-08T00:55:52.702573Z
1221
* Adds a data file for a unit test that got missed
* Documentation updates
ser
2006-09-06T16:02:31.913561Z
1220
Fixed a really old crusty string from when importing stylesheets from 
ser
2006-09-06T12:44:44.127381Z
1216
ticket:21: Improved the error message for missing attribute quotes. There's
only so much we can do about this; if there's a missing or mismatched end
quote, how would we know?
ser
2006-09-06T12:28:03.161247Z
1215
Added a test to confirm ticket:76 has been resolved
ser
2006-09-06T12:23:42.471067Z
1214
Added unit test confirming ticket:57 has been fixed.
ser
2006-09-06T12:01:48.023255Z
1211
Changes some namespace logic. This is related to ticket:51.

If a namespace mapping is provided (during the call to match() or first()),
then this overrides the default nodal namespace mapping.
ser
2006-09-06T02:08:21.235649Z
1210
Added some unit tests for ticket:51. These will fail.
ser
2006-09-04T02:54:51.849384Z
1209
Another bit for ticket:52
ser
2006-09-04T02:51:31.506426Z
1208
Fix for ticket:52, spurious newlines added to comments.
ser
2006-09-04T02:40:40.163835Z
1207
Unit tests to confirm ticket:43 fixed
ser
2006-09-04T02:39:23.201897Z
1206
Unit tests added to confirm ticket:36
ser
2006-09-03T11:54:56.151041Z
1205
Resolves ticket:70. The root cause of this was the conversion of literals to
numbers and back to strings.
ser
2006-08-06T00:45:31.945955Z
1204
Unit test for feature request #16.
ser
2006-08-06T00:44:02.009549Z
1203
Implements feature request #16.
ser
2006-06-25T13:06:02.394286Z
1200
Adds a unit test specifically for ticket:60.
ser
2006-06-25T13:03:01.475668Z
1199
Fix for ticket:60, Functions::number not working correctly. The fix was provide
by Alex LeDonne, and included an excellent unit test. Alex's fix also fixes an
unfiled bug about number() not handling negative numbers.
ser

Since last major release (844)

Executive Summary