|
|
|
Never mind, seems to be present in trunk and 3.2 at least.
I went ahead and added unit test similar to the one suggested into StaxTest project, compiled and added to Woodstox, to verify the eventual fix. Fix explanation makes sense given the problem. Yes, it is present in 3.2 at least.
Nowdays, I'm working on creating a kind of XML binding. But now, reparingNS option of DOMWrappingWriter is not available yet. So, I wonder When would be this function, DOMWrappingWriter capable of reparingNS, released. Anyway, thank you for fixing my issues. Cool, sounds like an interesting and useful tool/library that you are working on.
Like I said, I should be able to fix the problem as per your suggestion pretty soon now (hopefully over the weekend). And since there have been a few other fixes submitted, should release 3.2.3 as well (something I hadn't planned to do, but bugs need to be squashed ASAP). As to DOM writer: unfortunately time I can spend on woodstox is somewhat limited now. Also, finishing that part up was not very high on my list, so I wasn't expecting it to be done very soon. (a) If you can file another issue (new feature or improvement) in Jira for implementing namespace-repairing mode for DOMWrappingWriter, that would help (and of course you can also vote for it). That way it's easier for me to track what kinds of things users want. I will try to prioritize things so that it's partially based on wishes of users, not just my own preferences. One possibility is that if you do end up writing your own namespace context, perhaps that might help in someone implementing equivalent functionality within Woodstox? At any rate, thank you for reporting the problems, as well as patience in getting them resolved. I really appreciate it, since DOM compatibility part was not heavily used or tested earlier. Fixed along the lines proposed (did reorder things a bit to remove some duplicate code as well).
Applied to 3.2 branch as well as trunk. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
One quick question: which version is this against?
Also, thank you for the patch! That is much appreciated.