xmldocument icon indicating copy to clipboard operation
xmldocument copied to clipboard

ChildNamedContent method

Open klapaudius opened this issue 12 years ago • 0 comments

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.

klapaudius avatar Jul 24 '13 08:07 klapaudius