Details
-
Type:
Improvement
-
Status:
In Progress
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
Currently, there is no way to determine how quoted values are actually quoted. They can either use single or double quotes, but this information is not exposed. I would propose to enhance the Woodstox implementation to make this information accessible.
With my use case, the event API is used to emit a document and I would therefore require enhanced event implementations (e.g. AttributeEventImpl, NamespaceEventImpl...) that record this information. The proposed refactoring for WSTX-130 might make such a change easy (at least easier than with the current code base).
As always, I'm prepared to hack the sources, but would welcome your feedback as to whether you think such support might make it into the official stream. Thanks.
Quick question: is this just to improve exact round-trippability of content? That is, to minimize any changes to exact look. Semantically the two are equivalent, similar to how white space between attributes is.
This information is of course internally available, and you are correct in that WSTX-130 refactoring would probably make it feasible to add this support.