Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-451

Does not load schema, if path of XML has spaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • 2.1.0
    • None
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 12257

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

      }

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--Test.zip
          2 kB
          Thomas Boerkel

        Activity

          People

            Unassigned Unassigned
            thomas@boerkel.de Thomas Boerkel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: