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
2
votes
2 answers
jaxb: bind attribute to element
How can I realize this XML with JAXB? Currently the expires attribute in the grantA,C,B elements is not bounded - but it should. I don't know how to associate an element with an attribute. Do I have to create classes for every grantA,C,B?
XML:

No3x
- 470
- 1
- 8
- 28
2
votes
2 answers
Using JAXB with an XML file with many of the same elements
I am working on creating a Java class to map an XML file that has multiple same elements. The following XML is an example of what the file looks like:
some date
from someone
to…

Edward Kennedy
- 137
- 1
- 9
1
vote
1 answer
How to create "New" functions using Delphi XSD databinding wizard
According to Embarcadero's documentation
Call the generated New... function to create the TXMLDocument instance for an empty document when you want to create all the data in your application:
var
StockList: IXMLStockListType;
begin
StockList :=…

Peter Turner
- 11,199
- 10
- 68
- 109
1
vote
1 answer
How to change xml binding at runtime in Dashcode (iPhone)
I am working on Dashcode (iphone).
I get xml data from a url and need to change or refresh xml binding to a list at runtime.
In apple website, there is a way shown to bind xml/Json data only at design time.
Any one knows how to do it ?
Thanks

Rohit Arora
- 51
- 1
- 3
1
vote
1 answer
JAXBContext and @XmlNsForm annotation
Please shed some light on JAXBContext configutation.
Given:
customer library com.mycompany.user01234 with several
JAXB-annotated classes
all classes are simple POJOs located in the same package
classes are annotated by @XmlType
Customer marshals…

andbi
- 4,426
- 5
- 45
- 70
1
vote
1 answer
How do I remove the ns2 prefixes from XML elements using JAXB 3 and a NamespacePrefixMapper?
I want to generate a POM file using JAXB 3. I downloaded the XSD https://maven.apache.org/xsd/maven-4.0.0.xsd into src/main/xsd.
I generated the model classes using the JAXB maven plugin.
The POM file of the project is :

Sybuser
- 735
- 10
- 27
1
vote
1 answer
objectTabLayout.setupWithViewPager is not found
i am new in android and i am facing an strange situation in which i am not finding the setupWithViewPager.When i am calling objectTabLayout.setupWithViewPager then setupWithViewPager is not finding..what should i do?
My XML Code

Saad Ebad
- 35
- 5
1
vote
2 answers
How to convert Java to XML using Aegis?
How to convert a class into XML with Aegis?
Can´t find tutorials on the web, only random code.

bruno
- 2,154
- 5
- 39
- 64
1
vote
1 answer
How can I set the SelectedIndex property of a ComboBox that is bound to XML based on an attribute in that xml?
I have a WPF Combobox defined as such:
…

Matthew
- 2,210
- 1
- 19
- 30
1
vote
1 answer
What should be the jaxb annotations for this xml file?
I have a xml file payload which i want to unmarshal using jaxb, I've created a pojo class for unmarshalling and I've defined xml attributes and elements to that pojo, but i'm a little bit confused about namespaces, how to annotate them?
My xml…

Anurag
- 107
- 1
- 6
1
vote
1 answer
JAXB XML repeating alternating XmlElements without Parent element
We have been using JAXB to generate XML to interface with a third party. This third party is asking that for one section we produce a set of 2 different 0-n XML Elements in a repeating fashion without parent-elements separating them. Here is an…

Matt
- 21
- 2
1
vote
0 answers
Generating @XmlType propOrder default values
I want a custom sequence in my xml response rather than alphabetical. It's mostly alphabetical order but with few exceptions.
So, I ended up using propOrder in @XmlType annotation as a solution.
Now the problem is in few classes I've around 50…

Poorvik Angadi
- 11
- 5
1
vote
0 answers
JAXBContext in javax.xml.bind.JAXBContext not throwing an exception
JAXBContext in javax.xml.bind.JAXBContext is neither creating an instance of the package nor it is throwing an exception. The flow of the applicaton is fine until it comes to the below line in the code:
JAXBContext jc =…

step
- 25
- 1
- 7
1
vote
3 answers
Unmarshalling response depending on HTTP code during Spring Rest Service call
Calling a Rest Webservice using the Spring Rest Template as follows-
ResponseEntity response = restTemplate.exchange(builder.build().encode().toUri(), HttpMethod.GET, entity, String.class);
and get the output in String format as

Rehan
- 929
- 1
- 12
- 29
1
vote
2 answers
calling plugin from java code
hi i am using eclipse as IDE for the development of my application. I have one doubt.
I have one plugin that is capable to creating a class on from one xml file. Now, the problem is that i have many xml files and classses to generate..
can anyone…

M.J.
- 16,266
- 28
- 75
- 97