1
votes

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="[email protected]" Name="PhD" Phone="123-521-3388" Source="location"/

I am parsing xml file using NSXMLPARSER class methods and library

Thanks,

1
Like? What are you using to parse the tag? I hope it's an XML library. - Vivin Paliath

1 Answers

1
votes

Your sample XML data

<Contact Email="[email protected]" Name="PhD" Phone="123-521-3388" Source="location"/>

is equivalent to

<Contact Email="[email protected]" Name="PhD" Phone="123-521-3388" Source="location"></Contact>

and should be parsed by any XML parser.