pjfanning opened a new pull request, #162: URL: https://github.com/apache/poi-xmlbeans/pull/162
Follow-up to #152, which moved the root element's `xsi:type` / `xsi:nil` checks in `ValidatingXMLStreamReader` from the document-type BEGIN to the element BEGIN. #152's tests show the false errors are gone and that the xsi:type's facets now apply. This adds the inverse cases, showing the checks moved rather than disappeared: - `xsi:type` on the root that is not derived from the element's type → `cvc-elt.4.3a` - `xsi:nil='true'` on a non-nillable root → `cvc-elt.3.1` The root xsi tests now share one helper for building the reader and draining the stream. The helper also checks that `isValid()` matches whether any errors were collected. Test-only change; `ValidatingXMLStreamReaderTests` passes locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
