If this is on a Mac read the documentation for NSXMLDocument. If this is the iPhone check out TouchXML (http://code.google.com/p/touchcode/wiki/TouchXML ). Both have a low level XML parser as well.

Scott

On Jul 25, 2009, at 11:05 PM, Rick Schmidt wrote:

Hi I am trying to extract the value in an XML node/element as an int. Here
is a snip of what the xml looks like.
<BlastOutput_iterations>
   <Iteration>
     <Iteration_iter-num>1</Iteration_iter-num>
     <Iteration_hits>
       <Hit>
         <Hit_num>1</Hit_num>
         <Hit_id>gi|229264291|gb|CP001598.1|</Hit_id>
<Hit_def>Bacillus anthracis str. A0248, complete genome</ Hit_def>
         <Hit_accession>CP001598</Hit_accession>
         <Hit_len>5227419</Hit_len>

What I need to get at is the number for <Hit_len> and others in the file. I know this must be an easy thing to do I just cannot find a simple way to do
it.  Any ides...? Thanks

Rick
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/scottandrew%40roadrunner.com

This email sent to scottand...@roadrunner.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to