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 bu...@apache.org on 2004/01/20 11:54:29 UTC
DO NOT REPLY [Bug 26273] New: -
Problem reading XML-files when using symbolic links
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26273>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26273
Problem reading XML-files when using symbolic links
Summary: Problem reading XML-files when using symbolic links
Product: Xerces-C++
Version: 2.1.0
Platform: Sun
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Validating Parser (DTD)
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: dominik.stadler@gmx.at
I tried to query newsgroups/mailing lists if this is the intended behavior, but
didn't get an answer...
I have a problem when I use Xerces to parse a local XML File with a DTD
in the same directory where both files are symbolic links to different
directories.
I have a file somefile.xml which contains a reference to the DTD mydtd.dtd
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MSGSET SYSTEM "mydtd.dtd">
...
The two files in the current directory are actually symbolic links to
files in two different directories:
somefile.xml -> /tmp/directory1/somefile.xml
mydtd.dtd -> /tmp/directory2/mydtd.dtd
Now when I try to parse the XML file with Xerces, I get an error saying:
Checking XML-File ./somefile.xml for validity.
Fatal Error at
/tmp/directory1/somefile.xml,
line 2, char 39
Message: An exception occurred! Type:RuntimeException, Message:Could not open
DTD file
'/tmp/directory1/mydtd.dtd'
XML-File: ./somefile.xml was not valid!
Cannnot load input DTD or XML file
Is this the expected behavior of Xerces? I currently think this is a bug,
because I am not able to parse the XML file in this case and I don't have a
workaround except to copy the two files into the same directory!?
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org