1

我想知道每个参数为以下委托方法持有什么值。

- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
4

2 回答 2

0

浏览苹果文档。它简要介绍了所有这些内容。从链接中引用它。

于 2012-08-28T07:28:17.807 回答
0

didStartElement:namespaceURI:qualifiedName:attributes:

当解析器对象遇到给定元素的开始标记时,由解析器对象发送给它的委托。

- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict

参数

解析器

A parser object.

元素名称

A string that is the name of an element (in its start tag).

命名空间URI

If namespace processing is turned on, contains the URI for the current namespace as a string object.

限定名

If namespace processing is turned on, contains the qualified name for the current namespace as a string object..

属性字典

A dictionary that contains any attributes associated with the element. Keys are the names of attributes, and values are attribute values.

有关更多信息,请点击以下链接:http: //developer.apple.com/library/ios/#documentation/cocoa/reference/NSXMLParserDelegate_Protocol/Reference/Reference.html

于 2012-08-28T07:30:19.247 回答