jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes writing JAXB binding classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "writing JAXB binding classes" Watch "writing JAXB binding classes" New topic
Author

writing JAXB binding classes

J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 844
    
  13

There is no schema for the xml file that I'm processing with JAXB, so I have to write the binding classes. I found a good guide here, but I've run into a problem that I can't find addressed anywhere.

Here is a portion of the xml file. (actually, it's an Atom feed)



How do I handle the ":" in the element names? I can't define a variable with a name like that.

Maybe JAXB is not the way to handle an ATOM feed? Should I be going in a different direction? I've looked at ROME and Abdera, but they both use the URL class as input and I can't get through our proxy server using URL. I have to use the apache httpcomponents to authenticate to the proxy.

I only need about 3 of the elements from this feed. Should I just roll my own SAX reader to get the information that I need?


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
 
wood burning stoves
 
subject: writing JAXB binding classes
 
Similar Threads
Using XMLStreamReader to return actual XML strings of children?
Facade design pattern in web services
JAXB: Two xsd - Create single JAXBContext
CXF and JAXB binding for a class/property with special character in its name?
Top-Down approach: WSDL, JAX-WS and JAXB