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
1
vote
1 answer
JAXP whether for XML parsing or XML binding?
I know JAXP is for XML parsing but is it possible to achieve xml binding with the help of JAXP?

rogue lad
- 2,413
- 2
- 29
- 32
0
votes
1 answer
how to handle xml elements that may or may not be repeated using xml-object
I'm using the xml-object gem to process XML. Certain elements in the XML we receive may or may not be repeated. When they only appear once, xml-object binds them as a non-array property, but when they appear more than once they're bound as an…

jph
- 2,181
- 3
- 30
- 55
0
votes
0 answers
Binding Sql Server and XML
I have a Sql Server database (version 2008 running databases in 2000 mode) and I want to generate some XML files using data from this db. I have XML schema for this XML.
I've though of 3 ways to do it.
SQL Server select FOR EXPLICIT
The query would…

Krystian Lieber
- 481
- 3
- 10
0
votes
0 answers
namesspace is coming in ending tag of xml root element
Please find below xml format where namespace is coming in end tags as well
Please…
0
votes
0 answers
Using XmlBeans to serialize POJO to XML
I have a bunch of Java classes. I have been using JAX-B to serialize them to XML. I am not interested in deserializing from XML.
I am dissatisfied with how JAX-B works, especially when it comes to inheritance.
I am exploring using XmlBeans. I cannot…

Blessed Geek
- 21,058
- 23
- 106
- 176
0
votes
0 answers
How to remove xsi:type information form an XML element generated via JaxB?
I have got an legacy application using Xstream for serialization/de-serialization of Java classes having property declared with interface type as shown in sample below:
interface Address{
// ...
}
class CurrentAddress implements Address{
//…

Jaraws
- 581
- 1
- 7
- 24
0
votes
0 answers
How to do JaxB XML Unmarshalling/Marshalling of element with package name?
I got following XML with element name being present with their package name. How can I marshal/unmarshal the given XML using JaxB?
KT12356
DIESEL
With Java…

Jaraws
- 581
- 1
- 7
- 24
0
votes
1 answer
NullPointerException during JAXBContext.newInstance(contextPath) - jakarta.xml.bind
In my maven based project, String "contextPath" is nothing but any package of my project. No matter what package(or multiple packages appended with :) i assign to contextPath, i still get NullPointerException.
So i get NullPointerException during ,…

Sash_KP
- 5,551
- 2
- 25
- 34
0
votes
0 answers
Converting an xsd schema msg from queue to java object using spring Integration
I have 3 xsd schema in which one xsd is referring to 2 other xsd's. How to convert these xsd schema into java object. I have tried unmarshalling using JAXB and also tried many things.

Prashant Kumar
- 11
- 1
- 3
0
votes
1 answer
Error when generating JAVA classes with JAXB: XPath evaluation of results in empty
I have an XSD:

Ztrew
- 48
- 1
- 7
0
votes
1 answer
build every group of data and add them to the rendered XML page using xmlbuilder2
I'm using xmlbuilder2 node module to build the retrieved data and render them into XML page. when the data is very big I got this error
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
I was…

Yasmine ghazal
- 21
- 3
0
votes
0 answers
Unable to generate utf-8 request in .net core on consuming a wcf with basic transport http binding with certificate authentication
I am consuming a wsdl described as :
…

kriti gupta
- 9
- 2
0
votes
1 answer
Add/Modify an element to XML file using JAXB marshal
I am using JAXB to generate java code from XML, which has an enum

user837593
- 337
- 1
- 5
- 25
0
votes
2 answers
"org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation" to produce xml response
I try to produce xml-format data from spring boot restcontroller. Below is User model codes first.
@Entity
@Table(name="BlogUser")
@XmlRootElement
public class User {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
…

Joseph Hwang
- 1,337
- 3
- 38
- 67
0
votes
1 answer