W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

Re: setting dtd to validate against

From: DESEYNE Jacques <jacques.deseyne@swift.com>
Date: Wed, 30 Jan 2002 09:42:00 +0100
To: Steven Corkey <scorkey@ceyba.com>
Cc: xmlschema-dev@w3.org
Message-id: <3C57B1D8.8ABE3037@swift.com>
Hello Steven,

I would suspect that the DOCTYPE declaration in your XML instance is still the only “standard” way to tell what DTD-style
declarations have to be used for validation.
You can, of course, derive your own factory/parser/handlers and define new SAX properties to allow DTD references outside the XML
instance.

Maybe the DOM Level 3 Abstract Schemas specification (Working Draft status) will provide a standard interface to “load a grammar”,
i.e. both DTDs and Schemas. At this point, as I read it, giving access to only part of the information a Schema can contain.
I'm not sure what should happen in case of conflict between the two -- I have asked the question some months ago in this list and I
didn't see any reply.

Enjoy your further exploration and best regards,

--
Jacques


Steven Corkey wrote:

> Inside of java one can decide what xsd to use in validating an xml file
> regardless of what the xml file things it's xsd file is
> through the properties:
>                         parser.setFeature
> ("http://xml.org/sax/features/validation", true);
>
> parser.setProperty("http://apache.org/xml/properties/schema/"
>                                         +
> "external-noNamespaceSchemaLocation",xsdFile);
>
> Is the same true of DTD files?
>
> I want to set the DTD file to use in validation like I can set the xsd
> file.
>
> Much appreciated

--
Jacques Deseyne
SWIFTAlliance WebStation Development Team
IT/Interfaces
S.W.I.F.T. SCRL
Tel: +32 2 655 45 87
http://becqw460.swift.com

This e-mail and any attachments thereto may contain information that is
confidential and/or proprietary and is intended for the sole use of
the recipient(s) named above. It is not intended to create or affect
any contractual arrangements between the parties. If you have received
this e-mail by mistake, please notify the sender and delete it immediately.
Thank you for your cooperation.
Received on Wednesday, 30 January 2002 03:42:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT