Questions tagged [xml-binding]

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.

88 questions
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
  • 1,943
  • 1
  • 27
  • 47
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
  • 9
0
votes
0 answers

javax.xml.bind.annotation.* not working in spring boot application having @XmlElement, @XmlElementWrapper annotation

This is a Request class, when calling api with json payload { "bar": "Hello", "foos" : [ { "key":"value" }, { "key":"value" } ] } Initially getting both foos and barName null…
kimmy
  • 1
  • 1
0
votes
0 answers

Jibx using one mapping class Variable in multiple Structures

I have following mapping:
PhoXxs
  • 1
  • 1
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…
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
  • 285
  • 3
  • 21
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
  • 991
  • 1
  • 22
  • 45
0
votes
1 answer

Convert XMl code to java code with expression

2008-07-13T18:00:00
Suri
  • 1
  • 1
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,157
  • 2
  • 12
  • 21
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
  • 16,722
  • 1
  • 31
  • 57
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
  • 594
  • 1
  • 6
  • 24
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 …
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,101
  • 2
  • 23
  • 41