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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to