matthewmatician / xml-flow

An XML/HTML stream reader, now with less suck!
MIT License
55 stars 18 forks source link

option to change $attrs #23

Closed shahar-bistec closed 5 years ago

shahar-bistec commented 5 years ago

Hi, is it possible to change $attrs to a self picked name? if not it will be a nice adding so i hope you will consider it.

matthewmatician commented 5 years ago

You could easily convert the property-names on the stream of objects as a post-process if you wish. attrs is a common convention used in many libraries, and the $ is there to help prevent the name-collisions, because <$attrs> is an invalid tag-name.