Re: Re: java - reading and writing preferences (Without Spelling Mistakes)
Re: Re: java - reading and writing preferences (Without Spelling Mistakes)
- Subject: Re: Re: java - reading and writing preferences (Without Spelling Mistakes)
- From: "J. Todd Slack" <email@hidden>
- Date: Thu, 22 Apr 2004 10:04:32 -0400
- Organization: Slack Solutions
(corrected without spelling errors, my 't' key is not working well!)
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't you look at XML Parsing in Java, Create a DOM
tree and traverse 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.