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 bu...@apache.org on 2002/10/17 14:27:27 UTC

DO NOT REPLY [Bug 13729] New: - name of root node is not being enforced by schema

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

name of root node is not being enforced by schema

           Summary: name of root node is not being enforced by schema
           Product: Xerces2-J
           Version: 2.2.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: DOM
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: thomas@boerkel.de


Since 2.2.0, the name of the root node is not being enforced through the schema 
anymore. This was OK in 2.1.0. In the attached example, you can change the name 
of the root node to anything and Xerces will still validate it. Using these 
features/props:
    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));

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org