Cocoa Java XML
Cocoa Java XML
- Subject: Cocoa Java XML
- From: Michelle Parker <email@hidden>
- Date: Mon, 3 May 2004 10:33:25 +1000
Hi all
I need to download and decode 4 simple XML files in a Cocoa Java
application.
The downloaded XML files are not in a propertylist format, so I can't
use NSProperyListSerialization and NSXMLParser is Obj-C only.
Here is an example of one of the XML file types. I also have the DTD
file for each.
<?xml version="1.0"?>
<ABC_books>
<ABC_book>
<ABC_id>10</ABC_id>
<ABC_title>My Title</ABC_title>
<ABC_type>Novel</ABC_type>
</ABC_book >
</ABC_books >
Since the XML files are very simple and not going to be changing, I
just need a simple way to create one object (with associated
attributes) from each XML file. I don't need to save any XML files.
In WebObjects, I would use WOXMLDecoder and use a mapping file to
convert the values to objects. This results in an entity with
attributes set according to the values in the XML file.
But, what is the equivalent to WOXMLDecoder in Cocoa Java?
Or if there isn't an equivalent, what are other Cocoa Java developers
using to quickly read and parse simple XML files?
thanks for any assistance :-)
kind regards
mich
---------------------------------------
Michelle Parker
Web Objectives Pty Ltd
email@hidden
---------------------------------------
_______________________________________________
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.