Skip to content

Commit

Permalink
fixed sax cleanup on exception bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed May 17, 2013
1 parent 4e19759 commit e4e18f2
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,11 @@ A fast XML parser and Object marshaller as a Ruby gem.
- Added an attrs_done callback to the sax parser that will be called when all
attributes for an element have been read.

- Fixed bug in SAX parser where raising an exception in the handler routines would not cleanup.
- Fixed bug in SAX parser where raising an exception in the handler routines
would not cleanup. The test put together by griffinmyers was a huge help.

- [TBD] Reduced stack use in a few places to improve fiber support.

### Release 2.0.0

- The SAX parser went through a significant re-write. The options have changed. It is now 15% faster on large files and
much better at recovering from errors. So much so that the tolerant option was removed and is now the default and
only behavior. A smart option was added however. The smart option recognizes a file as an HTML file and will apply a
simple set of validation rules that allow the HTML to be parsed more reasonably. Errors will cause callbacks but the
parsing continues with the best guess as to how to recover. Rubymaniac has helped with testing and prompted the
rewrite to support parsing HTML pages.

- HTML is now supported with the SAX parser. The parser knows some tags like \<br\> or \<img\> do not have to be
closed. Other hints as to how to parse and when to raise errors are also included. The parser does it's best to
continue parsing even after errors.

- Added symbolize option to the sax parser. This option, if set to false will use strings instead of symbols for
element and attribute names.

- A contrib directory was added for people to submit useful bits of code that can be used with Ox. The first
contributor is Notezen with a nice way of building XML.

## <a name="description">Description</a>

Optimized XML (Ox), as the name implies was written to provide speed optimized
Expand Down

0 comments on commit e4e18f2

Please sign in to comment.