You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by ji...@apache.org on 2004/04/12 23:26:06 UTC
[jira] Updated: (XERCERJ-451) Does not load schema, if path of XML has spaces
The following issue has been updated:
Updater: Serge Knystautas (mailto:sergek@lokitech.com)
Date: Mon, 12 Apr 2004 2:25 PM
Changes:
Attachment changed from Test.zip
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XERCERJ-451?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCERJ-451
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCERJ-451
Summary: Does not load schema, if path of XML has spaces
Type: Bug
Status: Resolved
Resolution: WON'T FIX
Project: Xerces2-J
Assignee: Xerces-J Developers Mailing List
Reporter: Thomas Boerkel
Created: Tue, 3 Sep 2002 1:34 PM
Updated: Mon, 12 Apr 2004 2:25 PM
Environment: Operating System: Windows NT/2K
Platform: PC
Description:
This is a problem in versions 2.0.2 and 2.1.0, but 2.0.1 worked OK.
Loading an XML with references to schemas fails, if the path to the XML has
spaces. Using JDK 1.4.1 RC. Attaching XML and schemas. This is the test program:
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
public class Test1 {
public static void main(String[] args) throws Exception {
DocumentBuilderFactory dbf;
DocumentBuilder documentBuilder;
Document doc;
dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
dbf.setValidating(true);
dbf.setAttribute("http://apache.org/xml/features/validation/dynamic",
new Boolean(true));
dbf.setAttribute("http://apache.org/xml/features/validation/schema",
new Boolean(true));
documentBuilder = dbf.newDocumentBuilder();
doc = documentBuilder.parse(new File("E:\\Test Test\\Test.xml"));
System.out.println("OK!");
}
}
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org