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
58
votes
12 answers

Springs XmlBeanFactory is deprecated

I try to learn Spring. I am following this site http://www.roseindia.net/spring/spring3/spring-3-hello-world.shtml I tried one example in that. I am using some what like below, but here it shows: The type XmlBeanFactory is deprecated What do I…
Vishwanath.M
  • 6,235
  • 11
  • 42
  • 56
24
votes
2 answers

What to use instead of XMLBeans now that it has been retired?

I am starting a new project where I have third party XSD. My Java application needs to generate, and readm XML messages that conform to this XSD. In the past I have used Apache XMLBeans for this. It looks like XMLBeans has been retired. What is a…
John
  • 3,458
  • 4
  • 33
  • 54
20
votes
11 answers

Java XML Binding

What are you using for binding XML to Java? JAXB, Castor, and XMLBeans are some of the available choices. The comparisons that I've seen are all three or four years old. I'm open to other suggestions. Marshalling / unmarshalling performance and ease…
Paul Croarkin
  • 14,496
  • 14
  • 79
  • 118
13
votes
6 answers

Error when using XmlBeans generated classes

I've generated classes with XMLBeans from an xsd file and packed them in a jar file. then I've added that jar to the project classpath in eclipse and everything compiles and runs fine. I built a stand alone jar file from my project with Maven and…
Tomer
  • 17,787
  • 15
  • 78
  • 137
13
votes
2 answers

How to include automatically xmlbeans generated code into maven jar?

I have a project which uses Apache Xmlbeans for databinding. Currently it is very simple it only has some Schema-Files in src/main/xsd and xsdconfig in src/main/xsdconfig. I want to include the generated Classes into the generated jar-File. It works…
lerad
  • 225
  • 1
  • 3
  • 6
11
votes
4 answers

RuntimeException from xmlbeans - can't find compiled schema

I'm getting a RuntimeException while executing some code that depends on generated xmlbeans classes. I can't figure out if this is: me missing something during code-generation or packaging a runtime dependency missing a misleading error message,…
findango
  • 1,483
  • 2
  • 14
  • 16
9
votes
3 answers

Convert xml to java bean

How can I covert a an xml file to a simple java bean? Its a simple xml file without any xsd, which was generated from a java bean, which I don't have access to. I tried using xmlbeans to first generate the xmd from xml and then to generate classes…
outvir
  • 531
  • 4
  • 8
  • 11
9
votes
1 answer

Apache XmlBeans NullPointerException

I am trying to parse a pacs.003 ISO20022 formatted xml file. I have the XSD for this and using XMLBeans have created the required Java classes. The problem I am having is that I am not able to read an element from the XML and keep getting a…
James Fox
  • 691
  • 7
  • 24
9
votes
2 answers

Which Framework, Tool or Plugin mandates the hardcoded 'database.xsd' filename?

I inherited a CXF/Hibernate/JBoss based project that includes a filename named database.xsd. I combed the project to find out which subsystem/component in the system uses database.xsd but that yielded only one reference in a file used by the…
Withheld
  • 4,603
  • 10
  • 45
  • 76
7
votes
0 answers

Apache POI 5 and XMLBeans Classpath issues

I tried answering on the following post, but I don't have the "reputation" and really do not have time to hunt down 10 questions to answer. Runtime Exception - POI 5 and xmlbeans With POI 5 and XMLBeans 4 (or 5) in WebLogic server there is a…
roger89
  • 81
  • 1
  • 2
7
votes
2 answers

Within CXF, why use any other binding than JAXB? (MTOM attachments, Aegis, XMLBeans,...)

I have been playing around with Apache CXF, in particular the various data bindings it supports: JAXB (the default), MTOM, Aegis and XMLBeans. Since all of these are supported, I suppose each has its merits. I came up with these: Obviously, MTOM is…
László van den Hoek
  • 3,955
  • 1
  • 23
  • 28
7
votes
2 answers

How to generate XML from XML schema in java and feed data in it?

I am developing part of a web app which takes an XML schema as input to generate an XML file. There is also data to be put into the XML tags in an ordered way. For example, If I have an ArrayList of 100 numbers, say, 1 to 100 and the .xsd looks…
LT_Chen
  • 113
  • 1
  • 2
  • 7
6
votes
1 answer

Axis2 Namespace/Classpath Issue

I work on a web application that calls multiple web service clients from within its code. Each web service has some common namespaces, however I am currently mapping these namespaces to different packages when I generate each client e.g. Web Service…
ManoDestra
  • 6,325
  • 6
  • 26
  • 50
6
votes
2 answers

XMLBeans jar can't be signed when imported from custom class

In NetBeans I created an Exporter class that exports some data to an EXCEL file using APACHE POI, which uses XMLBeans. I added the APACHE POI 3.10.1 libraries by downloading the zip binaries and adding the jars manually. When I use this class inside…
chanklor
  • 487
  • 5
  • 11
6
votes
3 answers

java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions;

I am trying to write a program which write the data in Excel. But i keep getting an error which is shown below: Exception in thread "main" java.lang.NoSuchMethodError:…
prashantk87
  • 81
  • 1
  • 1
  • 7
1
2 3
19 20