xmldocument
xmldocument copied to clipboard
ChildNamedContent method
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.