jnunemaker / crack

Really simple JSON and XML parsing, ripped from Merb and Rails.
MIT License
541 stars 93 forks source link

Support for Attributes #47

Closed StephenOTT closed 11 years ago

StephenOTT commented 11 years ago

Is there proper support for Attributes?

Example <name first=frank>

jnunemaker commented 11 years ago

Did you try it?

StephenOTT commented 11 years ago

Yes. But attributes are poorly handled and the names of the attributes are dropped when converted into the hash.

xml-simple works better when you want to keep the names of the attributes in the hash as the key.