db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <tom...@gmail.com>
Subject Re: Problem validating XML
Date Tue, 20 Dec 2005 09:42:12 GMT
On 12/20/05, Ken Weiner <kweiner@gmail.com> wrote:
> Since XML validation was enabled by default in DatabaseIO, I have run into
> an error when I run DdlUtils.  My database XML file and resulting stack
> track are shown below.  Do I need to modify or add something to my XML file
> or is there a problem with the DTD?
>
> <?xml version="1.0"?>
> <database name="database-name">
>    ...(the table definitions)
> </database>

Well, the problem is that you haven't specified a DTD at all, and the
XML parser that you're using does not like that.
You can turn XML validation off at the DatabaseIO class via the
setValidateXml method:

http://svn.apache.org/viewcvs.cgi/db/ddlutils/trunk/src/java/org/apache/ddlutils/io/DatabaseIO.java?view=markup

Tom

Mime
View raw message