Re: [xml-dev] DTD problem

From
Ronald Bourret <>
To
Paul Johnston <>
Date
2001-12-18T00:03:05Z
ID
<>
Thread
Re: [xml-dev] DTD problem
If you're not tied to JAXP, then just use a DTD parser. For a list of
free parsers, see:

   http://www.garshol.priv.no/download/xmltools/cat_ix.html#SC_DTDParser

-- Ron

Paul Johnston wrote:
> 
> I am writing a simple XML retrieval tool, and I want to be able to find out from the XML documents associated DTD, which elements are allowed under a certain element.
> 
> I am using Java, and can retrieve the "model" using JAXP's DeclHandler but it's just a string of text like (it's an example):
> 
> (atag|btag*)+
> 
> is there an available parser for this info?  Having looked at the spec, I don't want to have to write my own if I don't have to!