I use KissXML, it is a drop replacement for NSXMLDocument, etc.
This is contents of my NSXMLElement:
<ar>
<k>baker</k>
<tr>ˈbeɪkə</tr>
baker пекарь, булочник
</ar>
I want to get the text value of a NSXMLElement Node without the text of all child nodes. So, it should return only:
baker пекарь, булочник
This is not working:
_articleText = [xmlElement stringValue];
It returns everything, including text of tr and k child nodes.
P.S.
I got this ar node using XPath and I'm searching for XPath solution preferably, I do not want to remove substrings.
NSArray *array = [self.xmlDocument nodesForXPath:@"/xdxf/ar" error:&error];