Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Does JAXB xjc work on Windows?

843834Jun 25 2003 — edited Jul 1 2003
I am trying to get xlc to work on a Window 2000 machine but when I run the command, 'xjc item.dtd item.xjs', I get the following.

parsing a schema...
[ERROR] The markup in the document preceding the root element must be well-formed.
line 1 of item.dtd

But the item.dtd and item.xjs files are cut and pasted directly from the JAXB primer, found at http://developer.java.sun.com/developer/technicalArticles/xml/jaxb/

Here is the DTD:

<!ELEMENT item_list (item_info*)>
<!ELEMENT item_info (name, price)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT price(#PCDATA)>

Here is the XJS:

<xml-java-binding-schema>
<element name="item_list" type="class" root="true"/>
<element name="item_info" type="class"/>
</xml-java-binding-schema>

Should this work under Window 2000?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 29 2003
Added on Jun 25 2003
2 comments
316 views