like "category" is not displayed. I want to append the value of scheme attribute to my current string.Please help me out.Thanks.
如果要访问标签的属性,可以使用以下方法来实现:
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict { NSString *scheme = [attributeDict valueForKey:@"scheme"];
找到的字符方法仅扫描标签之间包含的字符,而不扫描属性。
If you want to access attributes of a tag you can do so by using the following:
The found character method only scan for characters included between tags and does not scan for attributes.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
如果要访问标签的属性,可以使用以下方法来实现:
找到的字符方法仅扫描标签之间包含的字符,而不扫描属性。
If you want to access attributes of a tag you can do so by using the following:
The found character method only scan for characters included between tags and does not scan for attributes.