• 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
Re: Parsing question about NSXMLParser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Parsing question about NSXMLParser (From: Erg Consultant <email@hidden>)

  • Prev by Date: Re: How Do I Statically Link to libcurl?
  • Next by Date: libcurl -- how to write a callback?
  • Previous by thread: Parsing question about NSXMLParser
  • Next by thread: Basic KVO question
  • Index(es):
    • Date
    • Thread