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
0
votes
1 answer
Eclipse Moxy is ignoring @XmlNamedObjectGraph in some circumstances
I have a lot of classes that are converted to XML using eclipse MOXy @XmlNamedObjectGraphs to generate. They mostly seem to behave themselves, except for one class - TaskSchedule:
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlNamedObjectGraphs({
…

fancyplants
- 1,577
- 3
- 14
- 25
0
votes
1 answer
scalaxb fails when an element and an attribute at the same level having the same name
I am trying to use the sbt-scalaxb to generate bindings for the FixRepository.xsd and it does not like the SUBJ.
As a last resort, of cause, I can to slightly change the schema, but is there maybe a way to tune the sbt-scalaxb to understand the…

bobah
- 18,364
- 2
- 37
- 70
0
votes
0 answers
How do I bind a sub-element of an XML array item to a DataGridColumn?
Problem
I have an XML file with an array of items. I can correctly bind to the list of items and also to attributes on the node. However, I cannot get any sub elements bound and not sure what XPath or Path to use. How do I bind a sub-element of an…

Brownish Monster
- 682
- 1
- 8
- 25
0
votes
1 answer
@XmlElement - Get String value from object that is not mapped with @xml-anotation
I have 2 entities:
@Entity
@XmlRootElement
public class test {
@Getter
@Setter
@XmlElement(HERE I WANT THE NAME OF THE COUNTRY)
private Country country
}
@Entity
public class Country {
@Getter
…

Killua Zoldyck
- 25
- 1
- 1
- 6
0
votes
5 answers
Suggesstion needed for persisting java objects to xml
We are using hibernate to load data from oracle database. I need to load the data from one of the tables and then store selected data from this table as an xml file in another table. It would be great if someone could suggest, what would be the best…

awsome
- 2,143
- 2
- 23
- 41
0
votes
1 answer
WPF datagrid XML binding displaying multiple Items in a cell using DataTemplate
I have a DataGrid which is as follows::

Gurucharan Balakuntla Maheshku
- 2,399
- 9
- 43
- 76
0
votes
1 answer
Datagrid databinding to XML with DataGridTemplateColumn
I have an XML like this ::
Device 1
Device 2
…

Gurucharan Balakuntla Maheshku
- 2,399
- 9
- 43
- 76
0
votes
1 answer
How to set array in xml Model in sap ui5
I have stored xml data in an array which i want to set it to xml Model. I have tried using oXmlModel.setXML(oPropStored); where oXmlModel is the name of xml Model and oPropStored is the name of array in which the xml data is stored.
But it is not…

Sumit Ghewade
- 473
- 4
- 16
0
votes
1 answer
Unmarshalling issue 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
0
votes
1 answer
How to bind XML with namespace to WPF DataGrid?
I have a use-case where I need to bind data from an XML file to a WPF DataGrid. I prepared this example to demonstrate what I'll be doing in my final code.
This is Books.xml:

mbadawi23
- 1,029
- 2
- 21
- 43
0
votes
1 answer
Java xml-java binding @XmlType.propOrder
Java- jersey client and jersy json and xml binding
response as following
{"corp":"01105","rateCodeOffers":[{"rateCode":"!I","tosOffers":["MH0000010005"]}]}
mapping class
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
…

d-man
- 57,473
- 85
- 212
- 296
0
votes
1 answer
JAXB : Order of elements in multiple lists
I have two lists in my root element object.
List persons and List addresses . When i marshall this , it prints first all the person and then all the addresses . I want to print it one by one . Person then address , person and…

somaniA
- 614
- 2
- 7
- 30
0
votes
0 answers
JAXB binding to Custom java classes
WSDL generates properly for SOAP web services (JAXB) if we use JAXB Default data type like java.lang.String(xsd:string), but it gives problem when we use custom java classes as request object for web method
class GetPersonRequest
{
String…

Stuck in Java
- 202
- 2
- 12
0
votes
1 answer
Html table (XML binded) with command buttons to edit, delete, create
I have an XML file, that I want to both view and create, edit and delete records. Now I have just managed to read the xml file, and made a decent bootstrap table. I know there is some good libraries out there, but I want to use bootstrap.
This is…

Ruben Ravnå
- 659
- 7
- 17
0
votes
2 answers
How to convert book's reference to XML?
I have several book's reference be must convert to XML.
I want to create application in Java for this action.
Book's reference:
Schulz V, Hansel R, Tyler VE. Rational phytotherapy: a physician's guide to herbal
medicine. 3rd ed., fully rev. and…

user1874800
- 339
- 1
- 4
- 11