xmlbeans

has anyone got xmlbeans to work with GSON?

Basically as above. Gson gson = new Gson(); ErrorsDocument er = ErrorsDocument.Factory.newInstance(); er.setError("monkey escaped"); System.out.println(gson.toJson(er)); craps out with: Exception in thread "main" java.lang.IllegalStateException: How can the type variable not be present in the class declaration! at com....

Getting exception while compiling schema

We're trying to parse an XSD and build a property sheet out of that (using XML Beans). The code is as following: XmlObject xmlObj = XmlObject.Factory.parse( schema ); sts = XmlBeans.compileXsd(new XmlObject[] { xmlObj }, XmlBeans.getBuiltinTypeSystem(), null); Call to compileXsd throws the an exception with message: The 0th ...

get elements of xs:choice on XML Beans

I have a schema that looks like <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="a" type="a" /> <xs:element name="b" type="b" /> </xs:choice> XML Beans generates the two methods getAArray() and getBArray(), which return A and B elements separately, losing their ordering. I tried to let types a and b extend th...

Axis2 with XMLBeans data binding - Problem with a java client generated from a XSD schema with anyType.

I have generated a client using Axis2 framework with XMLBeans as the data binding method. The XSD schema is the following: <xsd:schema> <xsd:element name="profile" type="anyType"/> </xsd:schema> The java object generated which takes part of the SOAP request contains getter and setter methods that allow to get and set the profile...