Re: [xml-dbms] Re: ClassGenerator code provided with DTD Parser throws java.io.EOFException
- Two comments:
1) You are welcome to use the DTD Parser in your project. It's Open
Source and you can do what you want with it. I'll send you fixes to a
few bugs that were found recently.
2) You may want to consider XML Schemas => relational schemas instead of
DTDs => relational schemas. This is a more interesting topic because XML
Schemas are richer than DTDs. In particular, they contain data type
information, inheritance (extensions), and possible key information
(unique, key, and keyref constraints). I thought Apache had an XML
Schema parser you could use to create XML Schema objects from an XML
Schema document, but the closest I could find were a set of XML Schema
interfaces in XMLBeans (http://xmlbeans.apache.org/).
Devang Kamdar wrote:
> Hi Ron,
> Thanks a bunch for the quick reply.
> That was exactly the problem. However I found that out when I tried to validate that DTD using Altova's XML SPY.
> Since I had formed this master DTD from many small modules there were couple of spelling mistakes too.
> However, it has successfully parsed and crated all the classes for that huge and complex DTD.
> I am using this as part of my master's project.
> Actually I am wrtiing a tool that converts DTD to Relational Schema. (ER Diagram) So currently I do not need to worry about parsing the xml Data.
> However that is a valid point that you suggested.
> Also I wanted to ask for the permission if I can use the code as a part of another Open Source Product developed at my university to enhance it.
> Thanks again for your time.