How do I add a namespace attribute to an element in JAXB when marshalling?
- by Ryan Elkins
I'm working with eBay's LMS (Large Merchant Services) and kept running into the error:
org.xml.sax.SAXException:
SimpleDeserializer encountered a child
element, which is NOT expected, in
something it was trying to
deserialize.
After alot of trial and error I traced the problem down. It turns out this works:
<?xml version="1.0"…