Parsing a simple XML from string in Cocoa?
Posted
by Nick Brooks
on Stack Overflow
See other posts from Stack Overflow
or by Nick Brooks
Published on 2010-05-31T22:26:51Z
Indexed on
2010/05/31
22:33 UTC
Read the original article
Hit count: 272
I have a simple XML and I need to get the first 'id' from puid-list. I found lots of examples but none of them quite do that because of the namespace. How do get the id out as an NSString?
<genpuid songs="1" xmlns:mip="http://musicip.com/ns/mip-1.0#">
<track file="/htdocs/test.mp3" puid="0c9f2f0e-e72a-c461-9b9a-e18e8964ca20">
<puid-list>
<puid id="0c9f2f0e-e72a-c461-9b9a-e18e8964ca20"/>
</puid-list>
</track>
</genpuid>
© Stack Overflow or respective owner