ChildNamedContent method #18

klapaudius opened this Issue Jul 24, 2013 · 0 comments


None yet
1 participant


I needed to see a child content to edit it in a UITextView so I've added this method to my working copy :

  • (NSString *)childNamedContent:(NSString *)nodeName {
    NSString *string = @"";
    SMXMLElement *node = [self childNamed:nodeName];
    for (SMXMLElement *child in node.children)
    string = [string stringByAppendingFormat:@"%@", child];
    return string;

It is possible that there is a better way to do the job but this works fine and it doesn't return the nodeName markups in the returned string as I wanted.

Edit : Sorry for the indent I don't know how to set it well here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment