• 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: java - reading and writing preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java - reading and writing preferences


  • Subject: Re: java - reading and writing preferences
  • From: "J. Todd Slack" <email@hidden>
  • Date: Thu, 22 Apr 2004 9:51:03 -0400
  • Organization: Slack Solutions

Frank,

> I have a plist file that i need to read from. Its generated as the
> output of
> "system_profiler -xml -detailLevel -1 > output.plist"
>
> The data is stored different than past projects that I have worked
> with. My app had all values between a single <dict> tag. The system
> profiler file has nested arrays, so there are several <dict> tags in
> the file. How do I read this type of file? Since there are arrays of
> data, there will be more than one record for things like DNS servers,
> IP addresses, and routers. These are all essential pieces of data that
> I need to read.
>
> I am debating to do this in objective c or java. I have done things in
> java, but never objective c. I do have books on cocoa with objective c,
> but i am still pretty clueless and the code syntax still looks very
> foreign to me.

Since Objective-C is foreign to you, stay Java.

To start you off, why don you look at XML Parsing in Java, Create a DOM
tree and raverse it to get your information.

http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPDOM.html

-Jason
_______________________________________________
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: java - reading and writing preferences
  • Next by Date: how to use DES algorithm ?
  • Previous by thread: Re: java - reading and writing preferences
  • Next by thread: Re: java - reading and writing preferences
  • Index(es):
    • Date
    • Thread