XML data binding refers to a means of representing information in an XML document as an object in computer memory. This allows applications to access the data in the XML from the object rather than using the DOM or SAX to retrieve the data from a direct representation of the XML itself.
Questions tagged [xml-binding]
92 questions
87
votes
13 answers
Remove 'standalone="yes"' from generated XML
Do you know of a JAXB setting to prevent standalone="yes" from being generated in the resulting XML?

Johan Pelgrim
- 6,033
- 6
- 37
- 46
74
votes
9 answers
JAXB and property ordering
I want the serialized XML output from my Java class to honor the ordering of the properties in the Java class.
It seems that JAXB orders alphabetically.
I can override this by using @XmlType with propOrder and specifying ALL of the properties, but I…

andy hallam
- 749
- 1
- 5
- 3
21
votes
1 answer
What is JAXB and JAXRS ? How are they related?
Sorry for this blunt question . But many use these 2 terms day in and day out yet I don't know .I did some study on this and knew what it is separately . But don't understand how it is related . I will share what I understood about these two first…

Harish Kayarohanam
- 3,886
- 4
- 31
- 55
12
votes
1 answer
JAXB @XmlAttribute @XmlValue real example
I'm new to JAXB and have troubles with conversion from XML to a Java class instance.
I have the following XML:
client
Greeting
Your…
1000

Andrew Niken
- 606
- 2
- 8
- 18
9
votes
2 answers
Mapping XML to an object in Java
Suppose I have a class called Test, like this
public class Test {
private String testId;
private String description;
private String department;
public Test() {}
public Test(String id,String des,String dpt) {
…

Waqas Ali
- 1,642
- 4
- 32
- 55
4
votes
1 answer
Where has the XML Data Binding Wizard in Delphi XE2 gone?
Embarcadero help indicates that the XML Data Binding Wizard is also in XE2 (as well as XE and earlier) but I cannot see it (on two machines). Has it moved? Did it not get into XE2 yet? Is there a file I can add to install it? I can continue to…

Brian Frost
- 13,334
- 11
- 80
- 154
4
votes
3 answers
Generate XML Schema with documentation
Is there a way to generate XML Schema(xsd) with documentation( / ) from javadoc comments in classes?
I know the reverse is possible (i.e generation classes with javadoc comments from xsd with comments).
Please…

Sahil Dave
- 353
- 1
- 11
- 25
4
votes
1 answer
distinct XML mapping/binding on the same Java object
I have a Java application interoperable with several others information systems
A same object could be mapped in differents XML files according to the information system targeted
My question is : Is there a Java solution to perform serveral XML…

kwisatz
- 1,266
- 3
- 16
- 36
4
votes
1 answer
Jaxb POJOs generation with Inheritance
I want to generate the POJOs using the xml-binding with a different hierarchy that I have right now.
Now I have an xsd like this one:

Manuelarte
- 1,658
- 2
- 28
- 47
4
votes
1 answer
How to get XmlElement name in list of XmlElements
I am getting XML from a REST service that looks like:
1
1970-01-01
78.67
2
1450-09-17
24.56
…

user63868
- 56
- 2
- 5
4
votes
2 answers
How to correctly use GenerateDS for DDEX XML binding
I am interested in Python XML binding for reading input files conforming to this schema:
http://ddex.net/xml/ern/341/release-notification.xsd
This XSD depends on a number of other ones though, most importantly:
http://ddex.net/xml/20120404/ddexC.xsd…

SpongeBob
- 145
- 8
3
votes
2 answers
JiBX: How do I keep using interfaces in my code?
How can I keep my using interfaces in classes I want to use JiBX binding with?
Example:
I have this very simple model in java:
public interface A {
B getB();
void setB(B b);
}
public interface B {
String getData();
void…

Ran Biron
- 6,317
- 5
- 37
- 67
3
votes
1 answer
Problem in generating complex types while using XML Data Binding
I am using XML Data Mapping and having a problem with generating complex types while using it.
If i am having an XML like below its working fine
-

Bharat
- 6,828
- 5
- 35
- 56
3
votes
4 answers
How to bind xml to bean
In my application i use some API via HTTP and it returns responces as xml. I want automaticaly bind data from xml to beans.
For example bind following xml:
123456
123456
to this bean (maybe with…

glebreutov
- 785
- 1
- 7
- 18
3
votes
4 answers
Binding XML in Silverlight without nominal classes
Let's say I have a simple chunck of XML:-
Having fetched this XML in Silverlight I would like to bind it with XAML of this…

AnthonyWJones
- 187,081
- 35
- 232
- 306