aspose file tools*
The moose likes XML and Related Technologies and the fly likes [JAXB] Not able to generate IMPL file using xjc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "[JAXB] Not able to generate IMPL file using xjc" Watch "[JAXB] Not able to generate IMPL file using xjc" New topic

[JAXB] Not able to generate IMPL file using xjc

calvinkaiwen calvinkaiwen

Joined: Apr 14, 2006
Posts: 1

I am not able to generate IMPL files using xjc command, can anyone help please? Thank you.

xjc -p com summary.xsd

C:\jaxb-ri-20051223\bin>xjc -p com summary.xsd
parsing a schema...
compiling a schema...


<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:xs="">
<xs:complexType name="SummaryType">
<xs:element name="totalstucnt" type="xs ecimal" maxOccurs="1" minOccurs="1" />
<xs:element name="withdrawstucnt" type="xs ecimal" maxOccurs="1" minOccurs="1" />
<xs:element name="intakeid" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="oes" type="OESType" minOccurs="1" maxOccurs="1" />
<xs:element name="spcases" type="SPCasesType" minOccurs="1" maxOccurs="1" />
<xs:element name="testing" type="SPCasesType" minOccurs="1" maxOccurs="1" />
<xs:complexType name="OESType">
<xs:element name="oessubcomp" type="OESSubCompType" minOccurs="0" maxOccurs="unbounded" />
<xs:complexType name="OESSubCompType">
<xs:attribute name="code" type="xs:string" use="required" />
<xs:attribute name="present" type="xs ecimal" use="required" />
<xs:attribute name="absent" type="xs ecimal" use="required" />
<xs:complexType name="SPCasesType">
<xs:element name="case" type="CaseType" minOccurs="0" maxOccurs="unbounded" />
<xs:complexType name="CaseType">
<xs:attribute name="code" type="xs:string" use="required" />
<xs:attribute name="count" type="xs ecimal" use="required" />
<xs:element name="summary" type="SummaryType"></xs:element>
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41816
Welcome to JavaRanch.

We have a forum dedicated to XML question, which is were I'm moving this thread. FInd it there and continue the discussion.

Ping & DNS - my free Android networking tools app
Peer Reynders

Joined: Aug 19, 2005
Posts: 2922
You didn't specify what the exact problem is, nor what the error messages were, if there were any.
The command you specified should have created :
C:\jaxb-ri-20051223\bin\com\*.java (which it seems to have)

For the JAXB tutorial I used a batch file:

Note that the generated source was redirected to another directory which had to be created separately.
JavaTM Architecture for XML Binding Binding Compiler (xjc)
[ April 17, 2006: Message edited by: Peer Reynders ]
I agree. Here's the link:
subject: [JAXB] Not able to generate IMPL file using xjc