[xml] Re: Sax and Dtd's
- From: "Thomas Rokohl" <rokohl raygina de>
- To: xml gnome org
- Subject: [xml] Re: Sax and Dtd's
- Date: Sun, 23 Nov 2003 12:44:15 +0100
mhm, at the moment i use the DOM-Tree to parse big files and validate them
to a dtd file witch is in an other directory.
that's a little bit tricky, i have done it with xmlSetExternalEntityLoader
to correct on the fly the directory of the dtd file.
( e.g. if in the file is stand <!DOCTYPE RAYXML SYSTEM "test.dtd"> i correct
that to
<!DOCTYPE RAYXML SYSTEM "path\test.dtd"> because the path can changed)
also i use
theDtd=xmlParseDTD(NULL,(const xmlChar *)"./dtd/xyz.dtd");
to use an special dtd file.
so is something like this also posible with xmlreader?
thanx
Thomas Rokohl
"Daniel Veillard" <veillard redhat com> schrieb im Newsbeitrag
news:20031122184607 GQ757 redhat com
On Sat, Nov 22, 2003 at 07:03:04PM +0100, Thomas Rokohl wrote:
hi,
i have a simple question.
Is it planned that in the future the sax parser can validate the xml
file
with a dtd?
I don't intend to work on it. The xmlReader interface
allows to DTD validate and it's also a streaming interface
(i.e. it operates in constant memory). Use that API to validate
large instances.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]