davidcalhoun / jstoxml

JavaScript object to XML converter (useful for RSS, podcasts, GPX, AMP, etc)
MIT License
178 stars 23 forks source link

Explicitly state true for boolean attribute #57

Closed sknox131 closed 2 years ago

sknox131 commented 2 years ago

Could there be an option to explicitly set attributes to "true" if it is a boolean attribute?

davidcalhoun commented 2 years ago

Thank you for the heads up, will look into this as soon as I can!

davidcalhoun commented 2 years ago

This is now possible in v3 setting the config option attributeExplicitTrue to true.

sknox131 commented 2 years ago

Thank you!