This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

[JAXB] Not able to generate IMPL file using xjc

calvinkaiwen calvinkaiwen
Greenhorn

Joined: Apr 14, 2006
Posts: 1
Hi,

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

input:
xjc -p com summary.xsd

output:
C:\jaxb-ri-20051223\bin>xjc -p com summary.xsd
parsing a schema...
compiling a schema...
com\CaseType.java
com\OESSubCompType.java
com\OESType.java
com\ObjectFactory.java
com\SPCasesType.java
com\SummaryType.java



summary.xsd
------------

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="SummaryType">
<xs:sequence>
<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:sequence>
</xs:complexType>
<xs:complexType name="OESType">
<xs:sequence>
<xs:element name="oessubcomp" type="OESSubCompType" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="OESSubCompType">
<xs:sequence></xs:sequence>
<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>
<xs:complexType name="SPCasesType">
<xs:sequence>
<xs:element name="case" type="CaseType" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="CaseType">
<xs:sequence></xs:sequence>
<xs:attribute name="code" type="xs:string" use="required" />
<xs:attribute name="count" type="xs ecimal" use="required" />
</xs:complexType>
<xs:element name="summary" type="SummaryType"></xs:element>
</xs:schema>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
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
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
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)
C:\jaxb-ri-20051223\bin\com\impl\*.java
C:\jaxb-ri-20051223\bin\com\impl\runtime\*.java

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: http://aspose.com/file-tools
 
subject: [JAXB] Not able to generate IMPL file using xjc
 
Similar Threads
XML valiadation using schema
servlets and xml
XML schema fails to load
JAXB XJC compiling Issue
namespace