> From: John McNally <[EMAIL PROTECTED]>
> >   Index: id-table-schema.xml
> >   ===================================================================
> >   RCS file: /products/cvs/turbine/turbine/conf/master/id-table-schema.xml,v
> >   retrieving revision 1.2
> >   retrieving revision 1.3
> >   diff -u -r1.2 -r1.3
> >   --- id-table-schema.xml       2001/01/23 01:30:26     1.2
> >   +++ id-table-schema.xml       2001/01/31 19:58:55     1.3
> >   @@ -1,3 +1,6 @@
> >   +<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
> >   +<!DOCTYPE database SYSTEM
> "http://java.apache.org/turbine/dtd/database.dtd">
> 
> I spent some time trying to get Intake (which is very similar as far as
> the xml parsing to Torque,) to throw some kind of validation errors.  I
> added the lines similar to those above, and though they did succeed in
> getting the parser to read the DTD, I still could not get the parser to
> throw any errors regarding validation.
> 
> Are you able to create a non-validating condition in your
> project-schema.xml, after the addition above?
> 
> It would be good to get this working, if it still isn't.  It could help
> prevent a lot of questions due to errors in capitalization and other
> syntax errors.
> 

Hello John,

To validate my project-schema.xml, I see that I used something similar:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE app-data SYSTEM "database.dtd">

referring to a local database.dtd, the java.apache.org one was out of
date at the time.  Should changing the root element from database to
app-data have any effect?  I was able to create non-validating
conditions, a few from the dtd being out of synch with torque reality,
most from my own syntax errors.  I used jdom, and just caught any
exceptions thrown from code like this:

SAXBuilder builder = new SAXBuilder(true);
builder.build("project-schema.xml");

BTW, the lines in the id-table-schema.xml patch are cut verbatim from
turbine-schema.xml.  I assumed they would have worked there as well but
did not try first, sorry. :(

Jvz?

Regards,
~Eric

Eric J Altman
[EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to