I have been trying to use the DTD to XML schema converter. The DTD file i've been using is the Servlet Spec 2.2 DTD:
---------------------------
<!ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, error-page*, taglib*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*)>
<!ATTLIST web-app
id ID #IMPLIED
>
<!ELEMENT icon (small-icon?, large-icon?)>
<!ATTLIST icon
id ID #IMPLIED
>
<!-- The rest follows -->
..
......
........
---------------------------
However, the SchemaWriter always complains:
Exception in thread "main" java.lang.IllegalArgumentException: Namespace URI must not be null.
at org.exolab.castor.xml.Namespaces.getNamespacePrefix(Namespaces.java:230)
at org.exolab.castor.xml.schema.writer.SchemaWriter.getNSPrefix(SchemaWriter.java:1472)
at org.exolab.castor.xml.schema.writer.SchemaWriter.processElement(SchemaWriter.java:700)
at org.exolab.castor.xml.schema.writer.SchemaWriter.processContentModelGroup(SchemaWriter.java:666)
at org.exolab.castor.xml.schema.writer.SchemaWriter.processGroup(SchemaWriter.java:936)
at org.exolab.castor.xml.schema.writer.SchemaWriter.processContentModelGroup(SchemaWriter.java:670)
at org.exolab.castor.xml.schema.writer.SchemaWriter.processComplexType(SchemaWriter.java:630)
at org.exolab.castor.xml.schema.writer.SchemaWriter.processElement(SchemaWriter.java:843)
at org.exolab.castor.xml.schema.writer.SchemaWriter.processSchema(SchemaWriter.java:1150)
at org.exolab.castor.xml.schema.writer.SchemaWriter.write(SchemaWriter.java:218)
at org.exolab.castor.xml.dtd.Converter.marshalSchema(Converter.java:1207)
at org.exolab.castor.xml.dtd.Converter.convertDTDtoSchema(Converter.java:321)
at org.exolab.castor.xml.dtd.Converter.main(Converter.java:259)
Is there a way to specify the Namespace URI, maybe via the castor.properties file?
Thank you, Dragos
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
