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
0
votes
1 answer

XmlObject.execQuery working on OuterXml and not InnerXml

I am trying to run some Xquery over an XML file but every time I call the xmlObject.execQuery() it goes over the OutterXml and not in the InnerXml. Let me explain, I have this…
axy108
  • 537
  • 2
  • 4
  • 14
0
votes
2 answers

Java XML Bean and XML xml parser

I have never used XMl perser directly.When i was going through xml beans i got a doubt which may be stupid(apologies for that) and here it goes Use of xml parser is to parse through a xml and store its values. User of xml beans is to represent a…
Kranthi
  • 51
  • 1
  • 1
  • 5
0
votes
1 answer

SOAP webservice client code generation using Apache Axis2 XMLBeans in Eclipse

I am tring to generate the Webservice client code using Apache Axis2(1.6.2) in eclipse. I am using Axis2 eclipse plugin to generate client code. I am able to generate client code using ADB databinding method however When I try to use XMLBean…
0
votes
0 answers

How to create a typical XML Header with XML Beans in Java?

I would like to create a specific xml document with XML Beans. So I have been reached an acceptable result like this one: Now…
user2504767
0
votes
0 answers

How to escape ampersand in the XML present inside the CDATA section

Hi I tried to find out the solution for this but could get anything of much help. The problem is that the CDATA section has a XML present in it and I want to escape the special character '&' present in it. I'am using XMLBeans and tried using…
CuE
  • 361
  • 3
  • 9
0
votes
1 answer

How do I specify custom XML using xmlbeans

I am up to implement a workaround hotfix. We are using an external webservice whose client side was generated using xmlbeans and a big WSDL description. I need so specify a xml node that is not described in the schema. I know I could go and try to…
Benjamin Peter
  • 4,009
  • 2
  • 23
  • 23
0
votes
1 answer

xml to java bean conversion using apache xml-beans-2.5.0

Iam trying to generate java beans using jdk 1.5 and xml-beans-2.5.0, iam able to generate the jar, but when i try to use the generated type using final ActionsDocument actionsDoc = ActionsDocument.Factory.parse(inputStream); it gives me error The…
mangala shenoy
  • 325
  • 6
  • 11
0
votes
1 answer

How to automatically add xsd:attribute to xsd:complexType in Apache XMLBeans?

We're running into some trouble with supplied XSDs of the following kind: ... The XML-Result is then expected look something like this:
kjosh
  • 587
  • 4
  • 11
0
votes
1 answer

Can Dalvik convert anonymous inner classes to dex format?

I am trying to build dex file from xmlbeans-2.6.0.jar and xmlbeans-2.3.0.jar.I am getting following error [2013-02-14 14:57:08 - SOSTestProject] Dx warning: Ignoring InnerClasses attribute for an anonymous inner…
Samrat
  • 161
  • 2
  • 16
0
votes
0 answers

How can I get the xml tag name from the generated code (through XmlBeans)?

I had a xml file to parse. I created the xsd file related to that xml file manually. I created a jar file through that xsd file so that all the tags in the xml file could be taken as interfaces Now I have got a jar file in which the tags of…
Jatin Sehgal
  • 956
  • 2
  • 17
  • 37
0
votes
3 answers

xmlBeans dependancy in Fuse source ESB - how to resolve?

We are trying to transform data coming into a route from java objects to XML. For this we need xmlBeans and there is a dependancy on DataFormatResolver. When we try to deploy the project, the package does not start, the status shows as…
user1769045
  • 141
  • 1
  • 3
  • 12
0
votes
1 answer

Is it possible to manage duplicate element names with Axis2/XmlBeans

We are using thirdparty wsdl files that we are generating java files with using axis2. Now we have a problem that there are duplicate elements in different files but with the same namespace. Example: file1.wsdl =>
jrask
  • 55
  • 9
0
votes
0 answers

Axis 2 client sets http header protocol of "POST /SOAP/ HTTP/1.1" which is problematic

I'm have written an Axis2 client with XMLBeans binding and everything seems to work fine as far as creating the soap message. However, the http header has the protocol set to "POST /SOAP/ HTTP/1.1" (see debug logging below) which is causing the…
Kailash
  • 785
  • 1
  • 8
  • 17
0
votes
3 answers

"java.lang.NoSuchMethodError" exception in reading xmlbeans

I am trying to read XLSX file.its showing this error Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions; at…
user1635746
  • 1
  • 1
  • 1
0
votes
2 answers

Replace namespace prefixes with scoped default namespaces using XSLT

Can you share an XSLT with me which achieves following please? Input: 1234567897 777666 Output should…
Kaan Yy
  • 471
  • 6
  • 9
1 2 3
19
20