Help with CFXML?
Help with CFXML?
- Subject: Help with CFXML?
- From: Lucas Haley <email@hidden>
- Date: Thu, 14 Mar 2002 00:51:17 -0800 (PST)
Heya -- I am trying to read in an XML file into my app, and am having
difficulties making a CFXMLTree. The call to
"CFXMLTreeCreateFromData" doesn't return anything. Can anyone spot my
mistake? Thank you so much for any help
Lucas
(a newbie)
My loading code looks like:
- (void)loadFromData: (NSData *)theData
{
CFXMLTreeRef myXMLTree, myMovingTree;
CFXMLNodeRef xmlNode;
NSString *s;
NSLog(@"The Data: %@\n", theData);
// Fill out the XML Tree
if (!theData)
{
return;
} else {
myXMLTree = CFXMLTreeCreateFromData(kCFAllocatorSystemDefault,
theData, NULL, kCFXMLParserSkipWhitespace, kCFXMLNodeCurrentVersion);
NSLog(@"The XMLTree: %@\n", myXMLTree);
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.