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=12257>.
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=12257

Does not load schema, if path of XML has spaces

           Summary: Does not load schema, if path of XML has spaces
           Product: Xerces2-J
           Version: 2.1.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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!");
  }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to