     }
     
     private func removeChild(child: AEXMLElement) {
-        if let childIndex = find(children, child) {
+        //if let childIndex = find(children, child) {
+        if let childIndex = children.indexOf(child) {
             children.removeAtIndex(childIndex)
         }
     }

    /// Same as `xmlString` but without `\n` and `\t` characters
    public var xmlStringCompact: String {
        let chars = NSCharacterSet(charactersInString: "\n\t")
        return join("", xmlString.componentsSeparatedByCharactersInSet(chars))
    }
}


        
        :returns: Child XML element with `self` as `parent`.
    */
    public func addChild(name name: String, value: String? = nil, attributes: [NSObject : AnyObject] = [NSObject : AnyObject]()) -> AEXMLElement {
        let child = AEXMLElement(name, value: value, attributes: attributes)
        return addChild(child)
    }
