Hi Guys ,
similarly , i need to include the line
<!DOCTYPE AllocBlock SYSTEM "AlpMartAlloc.dtd" >
in the resultant xml from a jaxb object .
while forming the xml , would xerces parser help me add this dtd line even though i dont use dtd's ?
-----Original Message-----
From: Kohsuke Kawaguchi [mailto:kohsuke.kawaguchi_at_sun.com]
Sent: Thursday, June 09, 2005 6:50 PM
To: users_at_jaxb.dev.java.net
Subject: Re: problem - XML with DTD
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
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.