NSXMLParser question
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] initWith
Data: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.