-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation implementation of XMLStreamWriter
incomplete
#5
Comments
Correct, it has not (yet) been implemented. But it probably should not be lots of work to complete this, less than work to make reader-side validation work. |
XMLStreamWriter
implementation
XMLStreamWriter
implementationXMLStreamWriter
implementation
XMLStreamWriter
implementationXMLStreamWriter
implementation
Actually only now realized that there is support, just not complete, and obviously not (well) tested. |
After brief look, this is not trivial to add. Doable, certainly, but needs to dig in, compare how Woodstox it does (probably), and do it. Also worth noting that since Aalto itself does not provide validators, nor Stax2 (although a ref impl might make sense?), users would need to write their own validator or use Woodstox-provided implementation. Tests here can do latter. |
XMLStreamWriter
implementationXMLStreamWriter
incomplete
Validation is not working with an XMLStreamWriter. A quick comparison with woodstox makes obvious that several calls to XMLValidator are missing in StreamWriterBase (at least in writeAttribute(...), writeStartElement(...) and _closeStartElement(...)) and subclasses (several locations).
Furthermore, the invocation of XMLValidator..validateElementEnd(...) in StreamWriterBase._validator.validateElementEnd() mixes up the prefix and nsUri arguments.
The text was updated successfully, but these errors were encountered: