Questions tagged [jaxb2-basics]

JAXB2 Basics is an open source project which implements plugins and tools for JAXB 2.x reference implementation.

JAXB2 Basics is an open source project which implements plugins and tools for JAXB 2.x reference implementation. JAXB2 Basics is a part of the JAXB2 Commons project.

The implementation of JAXB2 plugins is available in this JAXB2 Basic project.

67 questions
0
votes
1 answer

not printing linked list elements

// Online C compiler to run C program online i have tried to create a linked list and print the elements but its not working.could you please help me // Online C compiler to run C program online #include #include struct sai{ …
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

jaxb2-basics and inheritance

I am successfully using jaxb2-basics for inheritance support. I am trying to add some more inheritance but cannot figure out how to do that in a specific situation. I have this XSD fragment:
Steve Ebersole
  • 9,339
  • 2
  • 48
  • 46
0
votes
0 answers

Parsing xml with jaxb return body always null

Hi I'm trying parse xml with jaxb but its body always return null. I tried to create object of that class and convert it to xml that is same fine result but when try to parse it that is not working.
William
  • 225
  • 4
  • 21
0
votes
2 answers

Java XSD - using a custom collection type

My Issue I am using the jaxb2 maven plugin to convert my XSD defined objects into Java classes. My goal is to set a list type element in my XSD (such as xs:choice unbound), to LinkedList instead of using the default ArrayList type. I am using the…
E.S.
  • 2,733
  • 6
  • 36
  • 71
0
votes
1 answer

With JAXB how do we avoid JAXBElement for mixed complexType

When a complexType is marked with mixed="true" in XSD, the generated Java class produces a List with either a "String" type or a JAXBElement wrapper around the actual value. Without mixed="true", the JAXBElement is not produced and the value is…
samyem
  • 437
  • 5
  • 16
0
votes
2 answers

JAXB Generating unexpected tag name, returns type name

I have the issue that the XML I'm generating does not match what I would expect. I have the following XSD...
jeff porter
  • 6,560
  • 13
  • 65
  • 123
0
votes
1 answer

Issues while parsing nested XML using JAXB

I am not able to parse following xml file using jaxB 1 COL1
user11190838
0
votes
1 answer

Java object into XML conversion using JAXB - annotation issue

public class RequestXml // this pojo for RequestXML { private Contact[] Contact; public Contact[] getContact () { return Contact; } @XmlElement(name="Contact") public void setContact (Contact[] Contact) { …
ss.catch
  • 17
  • 4
0
votes
1 answer

Inheritance plugin for JAXB2 not working on simpleTypes

I have some trouble applying xjb inheritance bindings to a simpleType. Applying it to a complexType seems to work fine. The error I get is: compiler was unable to honor this implements customization. It is attached to a wrong place, or its…
Cloud
  • 458
  • 1
  • 13
  • 34
0
votes
1 answer

CXF JAXB basics Equals/Hashcode

I have a problem generating equals and hashcode methods for my imported xsd files which are output to a separate location to my wsdl files. I currently have a .wsdl and .xsd file in the same folder. The .wsdl file imports these xsd files which have…
Byron
  • 1,313
  • 10
  • 22
0
votes
0 answers

AX=B,calculate complex matrix,while A and B is many dimensions

now I calculate AX=B ,while A X B is complex matrix,if i set size A is 3*3,B is 3*1,and it Calculate the correct.But if i set A is 58*58 and B is 58*256 complex matrix,it Calculation error.And i see the error happen at cublasCgemv,.I see the…
0
votes
0 answers

How to create or marshall the non xmlns attributes for the Schema header

I am able to create the attributes with all the xmlns, however not able to create the attributes below which are non xmlns like ft:record="true" ft:status=""...I scanned the java doc and the whole web but cannot find the solution or approach for…
Joe
  • 15
  • 5
0
votes
1 answer

unmarshal a xml string with jaxb

I have a string to unmarshal 65 i want to get the value 65. please help me , i am beginner in JAXB.
Vinod Kumar
  • 312
  • 4
  • 10
0
votes
1 answer

maven-jaxb2-plugin: How to use my own EqualsStrategy

I'm using maven-jaxb2-plugin to generate the equals and hashCode methods. I have implemented own strategies, derived from JAXBEqualsStrategy and JAXBHashCodeStrategy. Is there a way to tell the plugin to use those strategies instead of the default…
cbo
  • 96
  • 5