Search code examples
xmlcocoansstringnsxml

Maximum length of [NSXMLNode stringValue]


I have an XML document which contains an element that is over 90,000 characters in length*.

NSXMLNode* node = ...;
NSString* val = [node stringValue]; // this is not the full contents of the node!

The second line only gives me 80k or so. This is obviously not what I want, so I'd appreciate some suggestions. Is NSXMLNode broken? I'd guess that I'm doing something wrong.

Thanks in advance!

* i know that 90kbytes in an element is not great, this is out of my hands.


Solution

  • What does [node objectValue] give you?