RE: [xml] xmllint with external DTD

Hello again,

all to soon i've got a similar problem.
I try to validate a document using an IOParserContext (program "tstorxml"):

  ctxt = xmlCreateIOParserCtxt(NULL, NULL, myReadCallback, myCloseCallback,
(void *) fileDesc, XML_CHAR_ENCODING_NONE);
  ctxt->validate = 1;
  docPtr = ctxt->myDoc;


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


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
..\tstorxml\data\Test.xml:4: validity error: Validation 
failed: no DTD found

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!-- Comment -->
  Some content before child element
  <ORPC_Call id="c1">
      <RPCPriceReq someAttributes="will_placed_here"/>
  Some content beyond child element
  <foo bar="EMPTY_ELEMENT"/>

The DTD (Test.dtd) is present in the same directory as the 
parsed document
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
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

 <<Markus Henke.vcf>> 

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