oxm

What is the best Java OXM library?

Even though I've been a developer for awhile I've been lucky enough to have avoided doing much work with XML. So now I've got a project where I've got to interact with some web services, and would like to use some kind of Object-to-XML Mapping solution. The only one I'm aware of is JAXB. Is that the best to go with? Are there any other...

Mapping collection to XML in Castor

Hi, I'm trying to map a POJO to XML using Castor. Let's say I have a Order that has a collection of Items... is there any way of achieving an xml like the following: <order> ...order attributes <items> <item> ..item attributes </item> <item> ..other item </item> </items> </order> I could make something similar but wit...

XML binding solution in .NET

Hi, Are there any proper xml binding(mapping) solutions (OXM) in .net? What I need is to generate model classes from arbitrary xml. As for now I can't find anything like JaXB 1/2, JiBX, Castor XML, XMLBeans in Java. ...

Generic Collections and XStream

Is there a way to map (using xstream) a List<Person> to <friends> and List<Things> to <stuff> for example? Thanks! ...

Spring oxm getting type cast error near catch statement

I am getting error near catch statement Error : required java.lang.Throwabe found org.springframework.oxm.XmlMappingException enter code here public void writeObjectToXml(Object object, String filename) throws IOException { FileOutputStream fos = null; try { fos = new FileOutputStream(filename); try { ...

(Java) How can I pass Schema-validated XML documents as parameters between distributed components (e.g. web services or sockets)?

Here is a description of the scenario and I would appreciate also any comments on the approach used The core of my application is a set of web services backed by a P2P database. One service accepts a simple XML-based record (I have designed a generic schema for it). The service processes this data (mainly creating keys based on certain ...