Woodstox

nsRepairing mode of DOMWrapingWriter implementation

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Number of attachments :
    4

Description

Hi, again.

Previously, I asked when NsReparing mode of DOMWrappingWriter can be released.
But, it was not scheduled so that I added a simple namespace context object to my engine.(I mentioned I'm working on creating a xml binding tool.)

After implementing my ns context object, I tried to implement ns repair mode of DOMWrappingWriter.
Because I couldn't make lots of effors on it yet, there must be problems.
Honestly I spent just several hours to implement ns repair mode. It could be possible by refering RepairingNsStreamWriter class and SimpleOutputElement class. ( I added almost same logic to DOMWrappignWriter and create DOMOutputElement class.)

Though it's not optimized implemention, I post these DOMWrappingWriter and DOMOutputElement.
I wish it could be contribution to woodstox.

If any problem, please let me know.

  1. DOMOutputElement.java
    22/Nov/07 7:21 AM
    16 kB
    Yoon-Je Choi
  2. DOMOutputElement.java
    21/Nov/07 12:38 AM
    15 kB
    Yoon-Je Choi
  3. DOMWrappingWriter.java
    22/Nov/07 7:21 AM
    29 kB
    Yoon-Je Choi
  4. DOMWrappingWriter.java
    21/Nov/07 12:38 AM
    29 kB
    Yoon-Je Choi

Activity

Hide
Tatu Saloranta added a comment -

Thank you for the contribution! I will review it and hope to be able to use it in part or as whole.

Show
Tatu Saloranta added a comment - Thank you for the contribution! I will review it and hope to be able to use it in part or as whole.
Hide
Yoon-Je Choi added a comment -

I found a bug and fixed it.
The problem was that,
if a DOMResult is made from Node object which is a instance other than Document, a tree of DOMOutputElement is constructed with only root node.

Show
Yoon-Je Choi added a comment - I found a bug and fixed it. The problem was that, if a DOMResult is made from Node object which is a instance other than Document, a tree of DOMOutputElement is constructed with only root node.
Hide
Tatu Saloranta added a comment -

Very cool, I started reading the code.

Show
Tatu Saloranta added a comment - Very cool, I started reading the code.
Hide
Tatu Saloranta added a comment -

Included in 3.9.1 release.

Show
Tatu Saloranta added a comment - Included in 3.9.1 release.
Hide
Tatu Saloranta added a comment -

As per previous comment, this has been included in 3.9.1 (and 3.9.2) builds, resolving and closing.

Show
Tatu Saloranta added a comment - As per previous comment, this has been included in 3.9.1 (and 3.9.2) builds, resolving and closing.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: