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: 35436
posted Apr 15, 2006 00:52:00
0
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.
Android apps – ImageJ plugins – Java web charts
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
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 ]
"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
subject: [JAXB] Not able to generate IMPL file using xjc