 //
-//  Gaxb.swift
+//  GaxbTypes.swift
 //  Copyright (c) 2014 Small Planet. All rights reserved.
 //
 
 import UIKit
 
+// MARK: XSD datatypes
+
+extension Bool: GaxbType {
+    public init(gaxbString: String) {
+        self.init()
+        self.setWithGaxbString(gaxbString)
+    }
+    public mutating func setWithGaxbString(gaxbString: String) {
+        switch gaxbString {
+        case "true": self = true
+        default: self = false
+        }
+    }
+    public func toGaxbString() -> String {
+        return self ? "true" : "false"
+    }
+}
+
+// MARK: GAXB-defined types
 
 extension CGRect: GaxbType {
     public init(gaxbString withGaxbString: String) {

    }
}

extension UIImage {
    convenience init?(validateAndLoad name: String!) {
        self.init(named: name)

    }
}

extension UIColor {
    convenience init(red: Int, green: Int, blue: Int) {
        let newRed   = CGFloat(Double(red) / 255.0)
        let newGreen = CGFloat(Double(green) / 255.0)
        let newBlue  = CGFloat(Double(blue) / 255.0)
