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:28:06 UTC

[jira] Updated: (XERCERJ-492) does not throw an error anymore if schema is unavailable

The following issue has been updated:

    Updater: Serge Knystautas (mailto:sergek@lokitech.com)
       Date: Mon, 12 Apr 2004 2:26 PM
    Changes:
             Attachment changed from Test.xml
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XERCERJ-492?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCERJ-492

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCERJ-492
    Summary: does not throw an error anymore if schema is unavailable
       Type: Bug

     Status: Resolved
 Resolution: INCOMPLETE

    Project: Xerces2-J

   Assignee: Xerces-J Developers Mailing List
   Reporter: Thomas Boerkel

    Created: Thu, 17 Oct 2002 12:37 PM
    Updated: Mon, 12 Apr 2004 2:26 PM
Environment: Operating System: Windows NT/2K
Platform: PC

Description:
This worked OK until 2.1.0. If the schema is unavailable, the older versions 
threw an error. 2.2.0 loads the XML without error. Xerces should do schema 
validation, if one is specified in the XML. And if it is and the schema is not 
available, then an error should occur.
Using these props/features:
    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));
          
    dbf.setAttribute("http://xml.org/sax/features/validation", 
                     new Boolean(true));


---------------------------------------------------------------------
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