开发者

how to parse self closing tag in xml file

I am working on an iphone application in which I am consuming a webservice. So i am parsing the XML file data. any idea about how to parse self closing tag like: State/ and how to read data of self tag like: Contact Email="abc@anc.com" Name="PhD" Phone="123-521-3388" Source="location"/

I am parsing xml file using NSXMLPARSER class methods and 开发者_如何学Clibrary

Thanks,


Your sample XML data

<Contact Email="abc@anc.com" Name="PhD" Phone="123-521-3388" Source="location"/>

is equivalent to

<Contact Email="abc@anc.com" Name="PhD" Phone="123-521-3388" Source="location"></Contact>

and should be parsed by any XML parser.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜