- Fixed whitespace stripping from elements' contents, now only leading and trailing whitespace is stripped (reported by @wzcolon, thanks!).
- Added
error_handler
option to make it possible to handle errors on-the-fly instead of raising them.
- [BREAKING] Yielded hashes now have strings as keys instead of symbols (performance and security fix).
- Fixed passing options from
Saxy.parse
to parser's initializer
- [BREAKING]
Saxy::ParsingError
now inherits fromStandardError
, notException
. - [BREAKING] Forced encoding is now an option instead of third argument of
Saxy.parse
method. - Added
recovery
andreplace_entities
options that are internally passed toNokogiri::XML::SAX::ParserContext
- Added
context
method toSaxy::ParsingError
that holds parser context at the time of error.
- Added optional
encoding
argument toSaxy.parse
- Removed
activesupport
dependency
- [BREAKING] Dropped support for ruby 1.9.2 and lower
- [BREAKING] Yields hashes instead of
OpenStruct
s - Added support for
IO
-like objects