Most voted "jaxb" questions
JAXB (Java Architecture for XML Binding) allows Java developers to map Java classes to XML representations. If the question is not about "JAXB", do not use this tag, even if you are using "JAXB" in your project.
Learn more…16 questions
Sort by count of
-
5
votes3
answers1018
viewsSerialize XML for REST API with Correct Accent
I am creating a small read-only REST API service on a client system. It uses Spring MVC to fulfill the requests and the purpose of each request is to return a JSON with certain information to…
-
3
votes2
answers1303
viewsHow to transform an Object into XML in the specified format?
I would like to generate the XML for a request that I will make on Java from an object. The XML that I want to generate is the following: <?xml version="1.0" encoding="utf-8" standalone="yes"…
-
2
votes0
answers48
viewsJaxb converting abstract class with Retrofit
I have a Core project where there is a User class @XmlSeeAlso(value = {UserClient.class, UserProfessional.class}) public abstract class User implements Serializable { Userprofessional class @Getter…
-
1
votes0
answers1019
viewsHow to generate an XML template from an XSD SCHEMA using JAXB?
I have a Schema . XSD and would like to generate an XML from this template. Below I have this code, however I am using the Jlibs library. I wonder if it is possible to do something similar to the…
-
1
votes0
answers47
viewsProblem to convert date to Brazilian standard using JAXB
I’m having trouble converting xml to object using JAXB. The date comes in the format Sun Jan 30 16:08:23 BRT 18, and want to convert to Brazilian format 12-08-2009 16:08:23. JAXB Conversion Class:…
-
1
votes1
answer924
views -
1
votes1
answer52
viewsError including name attribute in @Webservice
I am creating the class that implements the WS call and when trying to include the name attribute, this error appears: "@WebService annotation contains an endpointInterface attribute. No name…
-
0
votes0
answers204
views(JAXB) Recover XML file in the input fields of a Jswing form with Unmarshalling
I am new and I started to learn these XML days because of an implementation that should have in my application, I did some tests with Mashall and unmarshall in the main class first (see at the end)…
-
0
votes1
answer87
viewsJaxb and JPA: class Embeddable Could not determine type for java.util.List
I’m trying to incorporate a class into another class. I’ve been able to do this in other scenarios, however, by the error shown below, I’m not getting it now. javax.persistence.PersistenceException:…
-
0
votes1
answer286
viewsError reading XML with JAXB: all null items after Unmarshal
I have a simple XML stock file with the following format: <?xml version="1.0" encoding="UTF-8"?> <estoque> <item Nome="Impressora XL2N" Peso="13 kg" Armazem="8" Quantidade="12"…
-
0
votes2
answers231
viewsDifficulty reading XML in Java
I’m trying to learn, and I’m having a hard time reading an XML by taking it via the Web and turning it into an object. There is a ready code in which it connects to the site, and another that a…
-
0
votes1
answer156
viewsXML parser error with JAXB
I’m trying to parse an XML file provided by a Webservice with open data of the acting Senators on Senado Federal The XSD file can be found directly by that link. This xsd does not specify a root…
-
0
votes0
answers148
viewsHow to map Java classes to a specific XML format?
I’m developing a framework that manages system calls and needs to save/load the state of the instance variables in a specific XML format. I looked for tools on the Internet and found the JAXB 2.…
-
0
votes1
answer228
viewsHow to convert XML with a repeated element to the Java object (JAXB)
I’m having a problem converting an XML file to Java Object. This is my XML file that I receive through Webservice: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"…
-
0
votes1
answer58
viewsMy Java Object is not persisted with all its XML attributes
I’m using the JAXB API. I can persist right a java object in xml but only persist the attribute "Name" the rest of the attributes are not persisted. Here are my codes: This is the method that saves…
-
-1
votes1
answer148
viewsI’m having trouble saving the contents of a docx in pdf
I have a Rest method that takes a Word document, replaces the placeholders and converts it to PDF and saves it to a directory. But I have a Nullpointerexception I couldn’t solve, someone can help?…