This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XML API for object import/export?


Hi folks,

Thanks for all your helpful answers to my questions so far.  I have one
more area that's really confusing me at the moment: XML.  Apologies if
this is off-topic.

I'd like to be able to import and export some specific classes in my
application via XML.  I don't necessarily need this for generalised
serialisation (although that wouldn't be a bad thing), but as a way of
getting objects into & out of my system.

The number of options that sit in the intersection of Java and XML seems
to me to be enormous: SAX, DOM, JAXB, JAXP, Xerces, JDOM, dom4j, etc.

My question is: what is the most appropriate API which:

- will enable me to parse an XML file and create Java objects from the
results

- is simple (preferably)

- is well-supported under GCJ

- is the "right direction" to go in terms of standards, and where GCJ is
likely to head in the future

>From my reading of the documentation, i'm guessing that DOM is not the
most appropriate way to go, since i'm not really interested in general
manipulation of XML documents, but simply using them as a transport
mechanism for objects, but i'm not really sure.

Can anyone offer some guidance in this department?
-- 
Paul
http://paulgear.webhop.net
-- 
Think context!  Using accepted quoting conventions makes
your email easier to understand.  Learn how at
<http://www.netmeister.org/news/learn2quote.html>.

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]