public class NSXMLParser extends NSObject
Constructor and Description |
---|
NSXMLParser(NSData data)
Constructs an NSXMLParser for the specified NSData object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
parse()
Starts the parsing operation.
|
NSError |
parserError()
Returns an NSError object that contains information about a parsing
error.
|
void |
setDelegate(NSXMLParserDelegate delegate)
Sets specified delegate of this NSXMLParser object.
|
void |
setShouldProcessNamespaces(boolean flag)
Sets a Boolean that defines whether the parser should report the
namespaces.
|
void |
setShouldReportNamespacePrefixes(boolean flag)
Sets a Boolean that defines whether the parser should report the prefixes
that define the namespace.
|
boolean |
shouldProcessNamespaces()
Returns a Boolean that shows whether the parser reports the namespaces.
|
boolean |
shouldReportNamespacePrefixes()
Returns a Boolean that shows whether the parser reports the prefixes that
define the namespace.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public NSXMLParser(NSData data)
data
- The NSData for which the NSXMLPareser is created.public void setDelegate(NSXMLParserDelegate delegate)
delegate
- The delegate of this NSXMLParser object.public void setShouldProcessNamespaces(boolean flag)
flag
- TRUE the parser should report the namespaces.public boolean shouldProcessNamespaces()
public void setShouldReportNamespacePrefixes(boolean flag)
flag
- TRUE the parser should report the prefixes.public boolean shouldReportNamespacePrefixes()
public boolean parse()
public NSError parserError()
Copyright © 2020. All rights reserved.