Questions tagged [xjc]

XJC is a JAXB tool for compiling XSD (XML Schema) to Java source code.

XJC is a JAXB tool for compiling XSD (XML Schema) to Java source code.

687 questions
0
votes
1 answer

XJC schema parsing error- cannot resolve name to an element declaration

Attempting to parse this schema definition:
ThisIsNoZaku
  • 1,526
  • 2
  • 17
  • 32
0
votes
1 answer

Maven xjb Access external schema directory

I am planning to use the 'jaxb2-maven-plugin' and generate objects out of the schema. org.codehaus.mojo jaxb2-maven-plugin 1.3
aazeem
  • 704
  • 1
  • 10
  • 23
0
votes
2 answers

Error while parsing xsd using xjc

I am parsing following xsd using xjc
Aquarius24
  • 1,646
  • 5
  • 27
  • 57
0
votes
1 answer

Error in prolog when parsing xsd using xjc

I am getting "Error in Prolog" when parsing followinf xsd by xjc
Aquarius24
  • 1,646
  • 5
  • 27
  • 57
0
votes
1 answer

Using XJC to compile a XSD with mutiple schema

I have a XSD of the format: .. .. .. .. .. .. …
user2306856
  • 67
  • 14
0
votes
1 answer

Xsd with nonlatin elements to java

I have an xsd where elements are named with nonlatin chars. How can I generate java classes, where filelds will be named properly, without "strange" chars: may be I can provide my own rules for per char tranformation?
glaz666
  • 8,415
  • 17
  • 53
  • 73
0
votes
0 answers

Xjc creates sub folders by the package specified

I'm trying to generate an xsd schema with xjc. The problem is that the xjc creates sub folders by the -p (package) flag. Example: If ill run xjc from c: with -p a.b.c like this: C:>xjc.exe -p a.b.c schema.xsd The xjc will create the a,b,c folders…
eitann
  • 728
  • 4
  • 19
0
votes
1 answer

jaxb xjc creating List< Objects > instead of List< String >

I have an xsd like this -
keerthi
  • 33
  • 1
  • 6
0
votes
1 answer

Trouble using xjc for SVG.xsd

I am using xjc.bat to create jaxb files for the svg schema. On the command line I enter: xjc http://www.w3.org/TR/2002/WD-SVG11-20020108/SVG.xsd -verbose My output is: parsing a schema... [ERROR]…
Joe
  • 7,646
  • 17
  • 50
  • 82
0
votes
2 answers

Ant task to convert WSDL to POJO with the use of XJC gives an Error package name

I have an Ant task that takes a wsdl file and should auto generate POJO's (client side Java) , so I can start programming my client side JAX-WS web services. However I'm getting an error "[ERROR] The package name .... used for this schema is not a…
cyber101
  • 2,672
  • 11
  • 46
  • 81
0
votes
1 answer

Java JAXB XJC code generation form XSD schema problem

I have my own domain model and corresponding XSD schema for it. It consists of data types and messages that are exchanged in my application. I use XJC tool from Java JRE 1.5 for generation of Java classes for the given XSD schema. The generated…
cubesoft
  • 3,294
  • 7
  • 44
  • 90
0
votes
1 answer

Java XSD code generation issue

I currently have an XSD that looks something like this,
user611105
0
votes
1 answer

boolean getters using xjc and ant

I am working on a project which uses xjc to generate the java files from XSD. The problem I am facing is it generate Boolean getters as isXXX instead of getXXX.
0
votes
2 answers

JAXB bindings for common nested types

I have to unmarshal and process XML from an external system over which I have no control. The XML is in what I believe is the Russian doll format which does not make it easy to process. The XML share common types which are declared in a common XSD…
DUFF
  • 442
  • 1
  • 4
  • 17
0
votes
1 answer

xjc does not add @XmlElement(nillable=false) on generated fields

I have a problem with generating classes using xjc. In the schema I have nillable="false", yet this is not added as an annotation (@XmlElement(nillable=false)) on the generated fields. This causes Jackson not to remove the fields when they are…
Erlend
  • 4,215
  • 20
  • 25
1 2 3
45
46