Ox v2.0.0 Release Notes

Release Date: 2013-04-16 // about 11 years ago
  • ๐Ÿ›  Fixed

    • ๐Ÿ“œ 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.