RE: [xml] xmllint with external DTD
- From: "Henke, Markus" <Markus_Henke ordat com>
- To: "'xml gnome org'" <xml gnome org>
- Subject: RE: [xml] xmllint with external DTD
- Date: Wed, 22 Aug 2001 11:03:04 +0200
Hello again,
all to soon i've got a similar problem.
I try to validate a document using an IOParserContext (program "tstorxml"):
<snip/>
ctxt = xmlCreateIOParserCtxt(NULL, NULL, myReadCallback, myCloseCallback,
(void *) fileDesc, XML_CHAR_ENCODING_NONE);
ctxt->validate = 1;
xmlParseDocument(ctxt);
docPtr = ctxt->myDoc;
<snip/>
Document is the same as below, it links to "orpc.dtd". That file is present
in the same directory as the XML document (i can validate it using xmllint).
I can parse the document, but there's again an error:
Entity: line 3: error: failed to load external entity "orpc.dtd"
<!DOCTYPE ORPC SYSTEM "orpc.dtd">
^
I refer to the document using a UNIX like command-line parameter:
tstorxml ../data/Test.xml
Any idea?
Many thanx in advance & Ciao, Markus
-----Original Message-----
From: Henke, Markus
Sent: Monday, August 20, 2001 2:07 PM
To: 'xml gnome org'
Subject: [xml] xmllint with external DTD
Hello,
i'm trying to test the validity of a XML document with the
xmllint tool:
xmllint -validate ..\tstorxml\data\Test.xml
The following errormessage is generated:
==============================================================
==============
=====
..\tstorxml\data\Test.xml:3: error: failed to load external entity
"Test.dtd"
<!DOCTYPE ORPC SYSTEM "Test.dtd">
^
..\tstorxml\data\Test.xml:4: validity error: Validation
failed: no DTD found
!
<ORPC>
^
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!-- Comment -->
<!DOCTYPE ORPC SYSTEM "Test.dtd">
<ORPC>
Some content before child element
<ORPC_Call id="c1">
<ORPC_Request>
<RPCPriceReq someAttributes="will_placed_here"/>
</ORPC_Request>
</ORPC_Call>
Some content beyond child element
<foo bar="EMPTY_ELEMENT"/>
</ORPC>
==============================================================
==============
=====
The DTD (Test.dtd) is present in the same directory as the
parsed document
(Test.xml).
The document is valid against it's DTD (i've tested that with
another tool),
so i don't provide the content of that DTD. Hope that's OK!?
So, what's wrong here? It's some kind of distressing, but i
can't see the
problem.
Maybe someone can open my eyes?!
Many thanx in advance!
Mit freundlichen Gruessen - Kind regards
Markus Henke
________________________Addressed by:________________________
ORDAT GmbH & Co. KG - Serversysteme/Neue Technologien
Dipl.-Inf. (FH) Markus Henke Fon: +49 (641) 7941-0
Rathenaustr. 1 Fax: +49 (641) 7941-132
35394 Gießen mailto:markus henke ordat com
See: http://www.ordat.com
_____________________________________________________________
<<Markus Henke.vcf>>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]