tadija / AEXML

Swift minion for simple and lightweight XML parsing
MIT License
1.01k stars 200 forks source link

Allow boolean values of 1 and 0 in addition to true and false #170

Closed wilmot closed 4 years ago

wilmot commented 4 years ago

According to https://www.w3schools.com/xml/schema_dtypes_misc.asp: "Legal values for boolean are true, false, 1 (which indicates true), and 0 (which indicates false)." Swift's Bool() returns nil for 1 and 0 so we can't use it.

tadija commented 4 years ago

This is merged in 4.6.0, thanks!