• 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
Need sample code...XML parsing...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need sample code...XML parsing...


  • Subject: Need sample code...XML parsing...
  • From: Albert Atkinson <email@hidden>
  • Date: Tue, 17 Sep 2002 16:05:31 -0500

Hello!

I looked through the archives and took a look at some of the resources others recommended but I could make neither head nor tails of any of it. So, I was wondering if anyone would be so kind as to take a minute and whip up a sample code for me?

Here is what I need, I have an XML file at www.mysite.com/xmlfile.xml that I need my app to download and parse.

Here is what it looks like:

<?xml version="1.0"?>
<mydata>
<name>Me!</name>
<email>My Email</email>
</mydata>

This is just a stripped down file but the real one contains actual information. Now, I want to parse this data and insert it into a text field. The data from "name" goes into NameTextField and the data from "email" go into EmailTextField.

Could someone supply me with some sample code please?

Thanks!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Conflicting Namespaces on the Language Level
  • Next by Date: Re: Conflicting Namespaces on the Language Level
  • Previous by thread: RE: Resizing NSTextView
  • Next by thread: Re: Need sample code...XML parsing...
  • Index(es):
    • Date
    • Thread