My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 36: Add _node property to CXMLNode
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Nov 2008


 
Reported by macmegas...@gmail.com, Nov 9, 2008
Since TouchXML doesn't support CData elements, adding a _node property to CXMLNode allows 
access to the underlying object so libxml functions can be called directly. That makes it very easy to 
get text or CDATA elements:

- (NSString*)getCDATA: (CXMLNode*)node {
    char *cdata = node._node->children->content;
    return [NSString stringWithCString:cdata];
}




Nov 10, 2008
#1 macmegas...@gmail.com
After sleeping on it, I decided a better solution is to simply add a category to CXMLNode with that function.
Nov 11, 2008
Project Member #2 jwight
Fixed in r227. Good idea. See CXMLNode_PrivateExtensions.
Labels: TouchXML
Nov 11, 2008
Project Member #3 jwight
Closed
Status: Fixed

Powered by Google Project Hosting