Valid use of contentspec, element content models, choices, sequences and content particles within an element type declaration. The optional character following a name or list governs the number of times the element or content particle may appear.
<!DOCTYPE doc [ <!ELEMENT doc ANY> <!ELEMENT a (doc)> <!ELEMENT b ((doc|a?))> <!ELEMENT c ((a,b))> <!ELEMENT d (doc*)> <!ELEMENT e (doc+)> <!ELEMENT f (doc?)> <!ELEMENT g ((a,b)*)> <!ELEMENT h ((a,b)?)> <!ELEMENT i ((a,b)+)> ]> <doc/>
| Expected result | Actual result for gnu.xml.aelfred2.XmlReader |
|---|---|
<?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
<startDocument/>
<startElement>
<namespaceURI/>
<localName>doc</localName>
<qualifiedName>doc</qualifiedName>
<attributes/>
</startElement>
<endElement>
<namespaceURI/>
<localName>doc</localName>
<qualifiedName>doc</qualifiedName>
</endElement>
<endDocument/>
</ConformanceResults>
| <?xml version="1.0" encoding="UTF-8"?>
<ConformanceResults>
<startDocument/>
<endDocument/>
<bug reason="Parser should only throw SAXExceptions" type="java.lang.ArrayIndexOutOfBoundsException">0 >= 0</bug>
</ConformanceResults>
|