TobiasNickel / tXml

:zap:very small and fast xml-parser in pure javascript:zap:
MIT License
217 stars 28 forks source link

simplify is not invoked like described by the README.md #8

Closed derMart closed 4 years ago

derMart commented 4 years ago

Hi,

README.md states: tXml("<user is='great'><name>Tobias</name><familyName>Nickel</familyName><profession>Software Developer</profession><location>Shanghai / China</location></user>",{simplify:1});

however, simplify is not invoked like this. Rather it is invoked by: tXml.simplify(tXml(xmlString));

kind regards Martin

TobiasNickel commented 4 years ago

Thanks Martin, for pointing that out. I think it was an old leftover, before I had this option. It is fixed and published, to npm now. Do you think a parseSimplified method would be nice?