• 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
NSXMLParser question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSXMLParser question


  • Subject: NSXMLParser question
  • From: Manoj <email@hidden>
  • Date: Mon, 10 Nov 2003 09:13:35 -0500

After allocating and initializing a NSXMLParser object, calls to the
following methods have no effect:

setShouldReportNamespacePrefixes
setShouldProcessNamespaces

Has anyone else run into this? The code I use is the following (assuming I
get my XML data in the NSData object (myXmlData):

-------

NSXMLParser *parser;
BOOL setting;

parser = [[NSXMLParser alloc] initWithData:myXmlData];
[parser setShouldReportNamespacePrefixes:YES];
[parser setShouldProcessNamespaces:YES];

/* The setting in the following two lines has a value of NO */
setting = [parser shouldReportNamespacePrefixes];
setting = [parser shouldProcessNamespaces];

--------

Am I missing something?

Thanks,
/Manoj
_______________________________________________
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: NSXMLParser question
      • From: René Puls <email@hidden>
  • Prev by Date: Re: DataSource class of NSTableView - weird
  • Next by Date: Question about NSUserDefaults
  • Previous by thread: Re: DataSource class of NSTableView - weird
  • Next by thread: Re: NSXMLParser question
  • Index(es):
    • Date
    • Thread