users@jaxb.java.net

Re: problem - XML with DTD

From: Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>
Date: Thu, 09 Jun 2005 18:50:01 -0400

Mahesh.Salunkhe_at_ubs.com wrote:
> Hi Guys,
> We are using JAXB with schema, our client uses DTD, we get XML with this declaration element <!DOCTYPE AllocBlock SYSTEM "AlpMartAlloc.dtd" > ,
> while trying to convert this XML into JAXB object it throws an error "AlpMartAlloc.dtd" file not found, could anybody guide me on this.

Well, as the error message says, the parser is failing to locate the
said DTD.

It's really a parser question, not a JAXB question.

Xerces allows you to ignore DTDs, so you might consider using Xerces as
a parser and configure it to do so.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com