2005-03-10 Chris Burdess <dog@bluezoo.org>
* gnu/xml/dom/ls/SAXEventSink.java: Ignore element declarations if
not currently parsing the DTD.
From-SVN: r96255
+2005-03-10 Chris Burdess <dog@bluezoo.org>
+
+ * gnu/xml/dom/ls/SAXEventSink.java: Ignore element declarations if
+ not currently parsing the DTD.
+
2005-03-10 Bryce McKinlay <mckinlay@redhat.com>
New Stack Trace infrastructure.
{
return;
}
+ // Ignore fake element declarations generated by ValidationConsumer.
+ // If an element is not really declared in the DTD it will not be
+ // declared in the document model.
+ if (!(ctx instanceof DomDoctype))
+ {
+ return;
+ }
DomDoctype doctype = (DomDoctype) ctx;
doctype.elementDecl(name, model);
}