Comments (2)
I don't think passing null
is valid usage, but perhaps it could do explicit check. Then again JDK javadocs don't say anything about usage so I guess it is up to implementation to deal with it (unless Stax API specification might say something; I do not recall it does).
To me Sun implementation's behavior seems like incorrectly defensive, but as there is not much guidance from Stax API it's matter of taste.
I do not think caller should assume null
s are ok, for that is worth: code that does that should be changed. Woodstox behavior could be changed to give XMLStreamException
, or IllegalArgumentException
, but... that would not be any more compliant it seems.
This might be something to bring at woodstox-user
Google group.
from woodstox.
Thank you for your anwser.
As you say, there is not much about usage in Javadocs or API spec. That's why there can be some differences between implementations...
I have just post a message in the google group to see if null value should be managed somehow...
Thanks again
from woodstox.
Related Issues (20)
- After update to 6.5.0, in osgi/felix runtime the bundle is not started due to missing dependency HOT 4
- failed to parse xml: Unrecognized property `'com.ctc.wstx.maxEntityCount'` in `woodstox:6.5` HOT 2
- Vulnerability CVE-2023-34411 HOT 3
- W3CMultiSchemaFactory class needs extended to allow for custom resolving of XSD's locations HOT 2
- Woodstox should provide option to leave predefined entities i.e. "<", ">", "'", """ and "&" as it is HOT 2
- Not able to write xml to azure blob storage HOT 1
- WstxValidationException: Unknown reason (at end element </nl:nillableIntElement>) when validating a document with nillable elements HOT 14
- Update `msv-core` dependency to `2022.7`
- Notations declared in external DTD subsets are reported as undefined HOT 6
- 'Undefined ID' not thrown when validating with SimpleNsStreamWriter HOT 1
- 'Element <root> has no attribute "verbose"' not thrown from RepairingNsStreamWriter when validating against a DTD schema HOT 1
- Module `com.ctc.wstx` does not read a module that exports `com.ctc.wstx.shaded.msv.org_isorelax.verifier` HOT 6
- Remove `QNameCreator` compatibility class
- WstxSAXParser error handling when used with JAXB validation HOT 7
- Version 6.6.0 contains a module error (dup of #193 ?) HOT 3
- Fix shading of `isorelax` dependency (and other msv-core components) HOT 12
- Invalid characters inside CDATA section HOT 5
- remove synchronized blocks HOT 1
- Non-conformant `XMLEventFactory.setLocation(null)` HOT 1
- Why is the maximum character count for parsing limited to 4000 each time? Can't it support the caller to customize this setting? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from woodstox.