Thanks Sandy for the comments and checking-in the code .

> 5. You had some code like the following, but it's possible that child
> ==null.
>                 child = DOMUtil.getNextSiblingElement(child);
>                 childName = child.getLocalName();

Ya, you are right!. I should have put a check there. Anyways, I think you should 
have moved the second line (childName = child.getLocalName();) in the following 
IF block rather than removing it.

Please find attached a patch for the same.

Cheers,
Rahul.

Sun Microsystems, Inc.
Index: XSDAttributeGroupTraverser.java
===================================================================
RCS file: 
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/v2/XSDAttributeGroupTraverser.java,v
retrieving revision 1.11
diff -u -w -r1.11 XSDAttributeGroupTraverser.java
--- XSDAttributeGroupTraverser.java     2001/09/21 17:57:17     1.11
+++ XSDAttributeGroupTraverser.java     2001/09/22 10:03:12
@@ -192,6 +192,7 @@
             }
 
             if (child != null) {
+               childName = child.getLocalName();
                 Object[] args = new Object [] { "attributeGroup", childName};
                 fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN,
                                "AttributeGroupContentRestricted",
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to