classpathx-xml
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-xml] Has anyopne written a command line tool to check dt


From: David Brownell
Subject: Re: [Classpathx-xml] Has anyopne written a command line tool to check dtds?
Date: Fri, 22 Feb 2002 11:05:35 -0800

A shell script should be easy:

- parameter is "foo.dtd", a filename $FILE
- absolutize it if needed ($PWD/foo.dtd etc)
- write a tempfile $TMP (expanding $FILE):

    <!DOCTYPE foo SYSTEM "$FILE">
    </foo>

- Run this through a NOP filter:

    java gnu.xml.util.DoParse $TMP "null"

That makes sure the DTD will parse.

- Dave


----- Original Message ----- 
From: "Nic Ferrier" <address@hidden>
To: <address@hidden>
Sent: Friday, February 22, 2002 6:32 AM
Subject: [Classpathx-xml] Has anyopne written a command line tool to check dtds?


> 
> I'm writing a DTD for Paperclips and I wondered whether anyone has a
> GNU-JAXP based tool for validating that DTDs are syntactically
> correct.
> 
> 
> 
> Nic
> 
> _______________________________________________
> Classpathx-xml mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/classpathx-xml




reply via email to

[Prev in Thread] Current Thread [Next in Thread]