Type: New Feature
Status: In Progress
Affects Version/s: None
Fix Version/s: None
Number of attachments :
(filed based on request by Elnar Hajiyev)
It would be nice if there was a way to track location information for individual attributes. Currently all attribute events give location of the enclosing element, since tracking of location information for all attributes would cause additional complexity and overhead, and was assumed not be needed by most users.
The support can be added via Woodstox-specific property, disabled by default. For Event API location could be passed by Woodstox, but for raw cursor API, a new method may need to be added.
One open question is what to do with attributes that get default value from DTD (and hence there's no attribute within parsed document itself): one possibility would be to give location where attribute (and its default value) was declared in DTD; another to just use element's location. Latter might be less surprising to users.
|Status||Open [ 1 ]||In Progress [ 3 ]|