Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChildNamedContent method #18

Open
klapaudius opened this issue Jul 24, 2013 · 0 comments
Open

ChildNamedContent method #18

klapaudius opened this issue Jul 24, 2013 · 0 comments

Comments

@klapaudius
Copy link

Hello,

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant