Tuesday, May 25, 2010

Navigating the JAVA XML APIs Differences between JAXB, JAXR, JAX-RPX , JAXP and JAXM (yup JAXM!)

 What do the different JAVA XML APIs do? What is it's purpose that is what I am trying to understand, it is an incomplete post, but as and when I complete reading the remaining APIs, I will update the same post.

From      wikipedia for JAXP
It provides the capability of validating and parsing XML documents. The three basic parsing interfaces are:

* the Document Object Model parsing interface or DOM interface
* the Simple API for XML parsing interface or SAX interface
* the Streaming API for XML or StAX interface (added in JDK 6; separate jar available for J
From wikipedia Java Architecture for XML Bindingipedia  (JAXB) allows Java developers to map Java classes to XML representations. JAXB provides two main features: the ability to marshal Java objects into XML and the inverse, i.e. to unmarshal XML back into Java objects. In other words, JAXB allows storing and retrieving data in memory in any XML format, without the need to implement a specific set of XML loading and saving routines for the program's class structure. It is similar to xsd.exe and xmlserializers in .Net Framework rom wikipedia Java APIRPCJAX-RPC) for XML-based ( allows a Java application to invoke a Java-based Web Service with a known description while still being consistent with its WSDL description. It can be seen as Java RMIs over Web services. JAX-RPC 2.0 was renamed JAX-WS 2.0 (Java API for XML Web Services). Sun JAXM Link JAXM is a Java API for SOAP-based XML (document-oriented) messaging. Oracle Link for JAXR Currently there are lots of business registries like eb-XML & OASIS JAXR provides a unified way to access these registries.