• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help with CFXML?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Help with CFXML?
      • From: Chris Parker <email@hidden>
  • Prev by Date: Re: NSComboBox initialFirstResponder and nextKeyView Outlets
  • Next by Date: Using NSCell with NSTableView
  • Previous by thread: Contextual menu on NSTabViewItem
  • Next by thread: Re: Help with CFXML?
  • Index(es):
    • Date
    • Thread