RE: [xml] xmllint with external DTD




-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: Monday, August 20, 2001 2:20 PM
To: Henke, Markus
Cc: 'xml gnome org'
Subject: Re: [xml] xmllint with external DTD


On Mon, Aug 20, 2001 at 02:07:15PM +0200, Henke, Markus wrote:
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">
[...]
So, what's wrong here? It's some kind of distressing, but i 
can't see the
problem.
Maybe someone can open my eyes?!

  xmllint -valid ../tstorxml/data/Test.xml

  I bet the problem comes from computing the URI-Reference to Test.dtd
due to the use of a Windows style path.

Yep. That's it. Many thanks!
Exact that kind of obvious things that i usually ignore...  8)

  Also it's --valid not --validate ... strange

Uups. Just a typo!


Daniel

-- 
Daniel Veillard      | Red Hat Network 
http://redhat.com/products/network/
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]