Re: Parsing question about NSXMLParser
Re: Parsing question about NSXMLParser
- Subject: Re: Parsing question about NSXMLParser
- From: Fritz Anderson <email@hidden>
- Date: Wed, 1 Jul 2009 16:37:03 -0500
On 1 Jul 2009, at 3:49 PM, Erg Consultant wrote:
I am trying to parse an XML file on the web using NSXMLParser. The
page is a list of gold prices. I can get the tagged elements with no
problem, but the price item doesn't seem to be tagged. Can anyone
tell me how to get the price item in this element using NSXMLParser:
<Price currencyname="Argentine Peso" currencycode="ARS">95.2086</
Price>
Upon entry to the element, allocate an NSMutableString and put it
where you can find it.
Upon foundCharacters, accumulate characters into the string.
Upon exit from the element, use the accumulated string.
— F
_______________________________________________
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