Questions tagged [jibx]

JiBX is a tool for binding XML data to Java objects.

JiBX is a tool for binding XML data to Java objects. It's extremely flexible, allowing you to start from existing Java code and generate an XML schema, start from an XML schema and generate Java code, or bridge your existing code to a schema that represents the same data. It also provides very high performance, outperforming all other Java data binding tools across a wide variety of tests.

Project Homepage: http://jibx.sourceforge.net/

Another useful resource: Jibx Tutorial Part 1 Jibx Tutorial Part 2

185 questions
0
votes
2 answers

Java Upgrade exception from 1.6 to 1.8

I am trying to upgrade my project from Java 1.6 to Java 1.8, While doing Gradle build am getting JIBX binding compilation Error.If I run using Java 1.6 it works fine. I am using JIBX version 1.2.5, Gradle 2.9 version.JAVA 1.8.0_71, Groovy…
Sachin
  • 31
  • 1
  • 5
0
votes
1 answer

Why is this jibx binding not unmarshaled like specified in the binding.xml?

I have these gradle tasks to rund jibx-bind and jibx-bindgen: dependencies { compile 'org.jibx:jibx-run:1.2.+' jibx 'org.jibx:jibx-bind:1.2.+' jibx 'org.jibx:jibx-run:1.2.+' jibx 'xpp3:xpp3:1.1.3.4-RC8' jibx…
mrt181
  • 5,080
  • 8
  • 66
  • 86
0
votes
1 answer

JiBX Binding: Adding a value and attribute to a structure, from properties which are in the same java Object

As I am new to JiBX, I don't know if this is possible, but I feel like I am overlooking something. I am trying to find a way to bind two properties from one POJO, to the same structure in two different ways. One as the value of the structure, the…
0
votes
1 answer

JiBX : How to specify precision for Bigdecimal

Im using Jibx to write my own binding for my java objects. Below is the block from my binding xml for a bigdecimal field. .... .... On Marshalling im getting…
Balaji Kannan
  • 407
  • 6
  • 24
0
votes
1 answer

xml to java objects using jibx

I have a huge xml file. I need to convert the xml into java objects and persist the data in Database. It will be around 200k records. Planning to use jibx. Is it a right approach? If so can someone provide the steps to convert xml file to java…
RK3
  • 1,221
  • 9
  • 26
  • 37
0
votes
0 answers

Jibx under multimodule maven project:

As I do not have enough reputation to comment/answer... need to ask here. It’s been frustrating trying to use JiBX on my project. I have the following configuration: Maven muti-module project: parent-project +—— model-project This project will…
0
votes
2 answers

JIBX: Classes generated from maven codegen plugin : No unmarshaller for element

I use Jibx CodeGen maven Plugin to generate java sources and binding from xsd files. I want to maintain several versions of the xsd in the same applications so I plan to generate to a different target package depending the version of the XSD. JBix…
Marc Bouvier
  • 642
  • 1
  • 11
  • 27
0
votes
1 answer

Child element namespace overridden by the root element namespace in JIBX

I am getting below exception at runtime while unmarshalling response xml using jibx. My root level binding has the namespace as 'abc.com/' but the child element tag has different namespace as xyz.com. During unmarshalling root level mapping element…
harshal
  • 133
  • 2
  • 7
0
votes
1 answer

How to validate xml (input stream or string reader) against xsd in jibx

I am new to jibx and would like to know whether validation of xml against xsd is available. If yes please provide an example.
user3930151
  • 119
  • 1
  • 11
0
votes
1 answer

Trying to get the XML element attributes using JIBX

I have an XML where some of the elements have attributes. Following is the example; 09/30/2014
Raj
  • 1,119
  • 4
  • 21
  • 41
0
votes
1 answer

JIBX MAVEN Problem

I am trying to use JIBX maven plugin in my Spring Web Service project, My project has diferent layers (API-DAO-SERVICE vsvs..) these layers are individual projects and has maven dependency each other. In my WEB project's POM, I add other…
emrah
  • 71
  • 1
  • 3
0
votes
0 answers

How to mention escape character in xml using JIBX

I need help with JIBX marshalling. I have a String "This is test <:test> this is test"; After marshalling this is getting converted to This is test <:test> This is test Please suggest a solution how can I prevent the…
saptarshi
  • 97
  • 1
  • 14
0
votes
1 answer

Jibx binding testing against xsd

I work on a project that uses jibx for marshalling/unmarshalling xmls. And every time when xsd changes I have to change bindings which I'm ok with. But what I want is to be sure before deploy that there is no xml such that the xml is xsd-valid and…
fallens4e
  • 443
  • 5
  • 8
0
votes
1 answer

Jibx Compilation not happening

I am trying to convert an XML into POJO using JibX. And here is my main method: IBindingFactory bfact = BindingDirectory.getFactory(Asset.class); IUnmarshallingContext uctx = bfact.createUnmarshallingContext(); FileInputStream inputStream = new…
Prasanth
  • 1,005
  • 5
  • 19
  • 39
0
votes
1 answer

empty tag for null value in Jibx

I would like to create an empty tag for one of my attribute when its value is null in JIBX. Can some one please help me out? Lets say i have an attribute called private String webId For the above attribute , there is no value coming from DB, so…
user2334926
  • 321
  • 2
  • 7
  • 16