Questions tagged [xmlbeans]

XMLBeans is a technology for accessing XML by binding it to Java types.

XMLBeans is a technology for accessing XML by binding it to Java types.

XMLBeans provides several ways to get at the XML, including:

  • Through XML schema that has been compiled to generate Java types that represent schema types. In this way, you can access instances of the schema through JavaBeans-style accessors after the fashion of "getFoo" and "setFoo". The XMLBeans API also allows you to reflect into the XML schema itself through an XML Schema Object model.
  • A cursor model through which you can traverse the full XML infoset.
  • Support for XML DOM.

XMLBeans was retired in 2014, and active development was ceased. However, in 2018 it was unretired and a new major version, 3.0.0, was released in June that year.

For an introduction, see the XMLBeans Overview or Getting Started With XMLBeans.

292 questions
5
votes
1 answer

wsdl2java client stubs for only some operations supported by the wsdl?

Using Axis2 Wsdl2Java: is there a way to generate the relevant client code from a wsdl, but only for a subset of the supported operations in the wsdl that are of interest. i.e. if the wsdl has say a hundered operations is it possble to only generate…
Mark
  • 141
  • 1
  • 5
5
votes
3 answers

How to generate two xmlbeans in one pom file

I tried to generate two xmlbeans in one project. Each one, for example, gets participant object, so I can't put them in one configuration. The way I did was using two excution, here is my pom file:
Luke
  • 113
  • 1
  • 6
5
votes
2 answers

Getter on xmlbeans generated class returning null and it shouldn't

Using this simplified XSD (simplified, but still verbose as all XSDs tend to be):
Daniel DiPaolo
  • 55,313
  • 14
  • 116
  • 115
5
votes
1 answer

Who is using XML Schema 1.1 version? Which parser versions support it? etc

The XML Schema 1.1 version of very good interesting features that are invaluable for my use cases. However, it seems to be relatively new. So I would like to get your feed back on the below questions before I finalize my decision. Which version of…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
5
votes
1 answer

Using xmlbeans bindings for cxf wsdl2java

I am getting started with using apache CXF 2.1.5 and xmlbeans to generate a web service client. The FAQ page shows how to use jaxb bindings to have java.util.Date binding for xsd:dateTime:
Bala
  • 979
  • 1
  • 10
  • 21
5
votes
3 answers

Using XMLBeans on Android

I was just wondering if anyone had any success in getting XMLBeans (or any other generator) to work on android. It would be very nice if I could use it because I have a very large schema that I would rather not write all the classes by hand. I had…
Robbie
  • 831
  • 2
  • 14
  • 22
4
votes
1 answer

XML-BEANS compiled schema: Could not locate compiled schema resource schemaorg_apache_xmlbeans/system/sE130CAA0A01A7CDE5A2B4FEB8B311707/index.xsb

I am writing an aplication to export data to an Excel sheet. I wont to use the XSSFWorkbook class because my Excel exceeds the limit of 255 column of HSSFWorkbook class. I downloaded the Apache POI libraries and I included the folowing libraries to…
mai87
  • 159
  • 2
  • 11
4
votes
2 answers

java.lang.NoSuchMethodError when trying to read .xlsm file

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions; at org.apache.poi.POIXMLDocumentPart.(POIXMLDocumentPart.java:56) at…
DT7
  • 1,615
  • 14
  • 26
4
votes
2 answers

XmlBeans error: unexpected element CDATA when parsing String

I'm having problems parsing an xml string using XmlBeans. The problem itself is in a J2EE application where the string itself is received from external systems, but i replicated the problem in a small test project. The only solution i found is to…
Martijn
  • 107
  • 1
  • 1
  • 9
4
votes
1 answer

How to add XML declaration to xml with XMLBeans

I have this question about Java XMLBeans. I want to include the following declaration at the top of the XML file: Is there anyway to do this natively with XMLBeans? The above can always be concatenated as…
TommyQ
  • 501
  • 7
  • 18
4
votes
2 answers

Compiling shared schema used by 2 WSDL using XMLBeans

I have this following directory structure Root CommonSchema 1.xsd 2.xsd Service1 XSD 3.xsd ( importing 1 and 2 xsd ) WSDL A.wsdl ( importing 3.xsd ) Service2 XSD 4.xsd ( importing 1…
Rudy
  • 7,008
  • 12
  • 50
  • 85
3
votes
1 answer

XmlBeans XmlDateTime format without timezone info

I'm getting an Xml representation of an XmlObject using the xmlText() method. The XmlDateTime objects are coming out with timezone offsets at the end of the string which is valid according to XML Schema: dateTime. Is there any way to force the…
GrkEngineer
  • 2,122
  • 19
  • 20
3
votes
1 answer

converting Object -HashMap to XMLObject

I have created a webservice which takes a HashMap as parameter. I generated the stubs/skeletion using XMLBeans and I am trying to set the values in the parameter and pass it to the webservice. The issue is: I have the HashMap or List and API is…
java_enthu
  • 2,279
  • 7
  • 44
  • 74
3
votes
1 answer

Java Enum with XML Beans?

When using Apache XML Beans to generate types from xsd:enumeration types, XMLBeans generates custom classes that are not Java 5 enums but some kind of special class to represent the enumeration. This might be the case, because XMLBeans is older than…
Tim Büthe
  • 62,884
  • 17
  • 92
  • 129
3
votes
2 answers

using xsd:any for extensible schema

Until now, I've been handling extensions by defining a placeholder element that has "name" and "value" attributes as shown in the below example ...
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
1
2
3
19 20