soulcutter / saxerator

A SAX-based XML parser for parsing large files into manageable chunks
MIT License
128 stars 19 forks source link

Remove special case for EmptyElement #57

Closed soulcutter closed 7 years ago

soulcutter commented 7 years ago

This was a weird idea to treat an object as nil-like, but having a name and attributes. It's more-consistent to represent it as a HashElement, which requires no special behavior.

Fixes #26

soulcutter commented 7 years ago

I'm wondering if a more-useful #to_s for HashElement would be helpful since for empty elements it just looks like "{}"