You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Arun Ramdas <ar...@etrade.com> on 2002/02/13 20:23:45 UTC
on-the-fly DTD validation
I am using Xerces-c 1.6 for XML parsing. Is there a way to specify the name
of the DTD file on the fly before performing the parsing? (I wont get the
DTD reference in the incoming XML)
Thanks,
Arun Ramadoss
Professional
Software Engineer II
E*TRADE Financial
w 650-331-6307
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: on-the-fly DTD validation
Posted by Evert Haasdijk <ev...@zukkespijkers.nl>.
I think you could use your own XMLValidator derived class when constructing
the parser. See the docs for the constructor of the parser and for
XMLValidator.
HTH, Evert
-----Original Message-----
From: Arun Ramdas [mailto:aramdas@etrade.com]
Sent: Wednesday, February 13, 2002 8:24 PM
To: xerces-c-dev@xml.apache.org
Subject: on-the-fly DTD validation
I am using Xerces-c 1.6 for XML parsing. Is there a way to specify the name
of the DTD file on the fly before performing the parsing? (I wont get the
DTD reference in the incoming XML)
Thanks,
Arun Ramadoss
Professional
Software Engineer II
E*TRADE Financial
w 650-331-6307
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: on-the-fly DTD validation
Posted by Joachim Achtzehnter <jo...@netacquire.com>.
Arun Ramdas wrote:
>
> I am using Xerces-c 1.6 for XML parsing. Is there a way to specify the name
> of the DTD file on the fly before performing the parsing? (I wont get the
> DTD reference in the incoming XML)
No, there isn't. You can instead use a Schema, and call either
parser.setExternalNoNamespaceSchemaLocation("schema.xsd");
or
parser.setExternalSchemaLocation("schema.xsd");
Joachim
--
work: joachima@netacquire.com (http://www.netacquire.com)
private: joachim@kraut.ca (http://www.kraut.ca)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org