You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Raphael Mack <ra...@rampro.de> on 2001/02/03 17:51:32 UTC

creating DTD

Hi,

I wrote s.th. to write XML-Files with DOM. But now I want to generate a DTD 
for the Document. Does anyone know how I can do this?

Thanks,
Raphael
-- 
E-Mail: raphael.mack@rampro.de - www: http://www.rampro.de - icq: 59473818
Linux is like a wigwam: no windows, no gates and apache inside.

Re: creating DTD

Posted by Arnaud Le Hors <le...@us.ibm.com>.
Raphael Mack wrote:
> 
> Hi,
> 
> I wrote s.th. to write XML-Files with DOM. But now I want to generate a DTD
> for the Document. Does anyone know how I can do this?

I'm not sure what you're really asking for. If what you're looking for
is a tool that automatically generates a DTD that matches a given
document you should look at the alphaworks.ibm.com. Although I don't
know the name of the tool I know there is one.
If what you're looking for is an API a la DOM to build a DTD
programatically and then save it, no luck. Xerces doesn't support
anything like that. You're on your own here.
-- 
Arnaud  Le Hors - IBM Cupertino, XML Strategy Group