KanikaVarma / sudzc

Automatically exported from code.google.com/p/sudzc
0 stars 0 forks source link

Soap.m getNode function bug #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the objective c generated code, in Soap.m in the static function getNode
isEqual should be isEqualToString

// Gets the node from another node by name.
+ (CXMLNode*) getNode: (CXMLNode*) element withName: (NSString*) name {
    for(CXMLNode* child in [element children]) {
        if([child respondsToSelector:@selector(name)] && [[child name] isEqualToString: name]) {
            return (CXMLNode*)child;
        }
    }
    for(CXMLNode* child in [element children]) {
        CXMLNode* el = [Soap getNode: (CXMLElement*)child withName: name];
        if(el != nil) { return el; }
    }
    return nil;
}

Original issue reported on code.google.com by andreas....@gmail.com on 14 Sep 2011 at 4:10