         case .Element(let element):
             return try T.deserialize(element)
         default:
-            throw XMLDeserializationError.InvalidNode(node: self)
+            throw XMLDeserializationError.NodeIsInvalid(node: self)
         }
     }
     

extension Int: XMLElementDeserializable {
    public static func deserialize(element: XMLElement) throws -> Int {
        guard let value = Int(try element.nonEmptyTextOrThrow())
        else { throw XMLDeserializationError.TypeConversion(type: "Int", element: element) }
        return value
    }
}


public extension XMLIndexerDeserializable {
    static func deserialize(element: XMLIndexer) throws -> Self {
        throw XMLDeserializationError.ImplementationIsMissing(method: "XMLIndexerDeserializable.deserialize(element: XMLIndexer)")
    }
}

