• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Parsing XML with NSXMLParser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parsing XML with NSXMLParser


  • Subject: Parsing XML with NSXMLParser
  • From: Paul Taylor <email@hidden>
  • Date: Wed, 12 Dec 2007 09:28:00 +1100

HI

I have been trying to figure out how to retrieve a value in an XML element that contains a = in the element name part of the message, I'm not sure if I'm going about this the wrong but the method I'm currently using as served me well in the past (although the XML I have been working only used the = when assigning the value). I have been using NSXMLParser to parse the incoming XML then retrieving information I require from the created NSDictionary, which has all worked fine. However if I parse an element such as the one that follows;

<return xsi:type="xsd:string">Success</return>

When I dump out the created dictionary I find the following values have been stored;

xsi:type - Has been stored as the key
xsd:string - Has been stored as the value

When ideally I would have liked,

return - Stored as the key
Success - Stored as the value

Thanks

Paul.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Making sure my code will run on Tiger 10.4 when I'm compiling on Leopard 10.5.
  • Next by Date: Re: Programmatically setting a binding with an NSValueTransformer
  • Previous by thread: Re: Programmatically setting a binding with an NSValueTransformer
  • Next by thread: Re: Subclassed control in IB uses original cell class
  • Index(es):
    • Date
    • Thread