+" </xs:sequence>"
+" </xs:extension>"
+"</xs:complexContent>"
+"</xs:complexType>"
+"</xs:schema>");
XMLStreamReader2 sr = getReader("<ns11:Root xmlns:ns11='http://MySchema'>"
+"<ns11:Child xsi:type='ns11:ChildInst' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>"
+"</ns11:Child>"
+"</ns11:Root>");
sr.validateAgainst(schema);
try {
assertTokenType(START_ELEMENT, sr.next());
assertEquals("Root", sr.getLocalName());
assertTokenType(START_ELEMENT, sr.next());
assertEquals("Child", sr.getLocalName());
assertTokenType(END_ELEMENT, sr.next());
assertTokenType(END_ELEMENT, sr.next());
assertTokenType(END_DOCUMENT, sr.next());
} catch (XMLValidationException vex) {
fail("Did not expect validation exception, got: " + vex);
}
assertTokenType(END_DOCUMENT, sr.getEventType());
}