Does JAXB xjc work on Windows?
843834Jun 25 2003 — edited Jul 1 2003I 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?