Parse attribute values to booleans and numbers. This isn't best practices for handling XML (if there is such a thing) but it reduces the internal representation and allows typed pattern matching without further processing.
More type buracracy makes schema conversion less lossy.