This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 179720 - Use DOM 3 L&S to implement XMLUtil.write
Summary: Use DOM 3 L&S to implement XMLUtil.write
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks: 179668
  Show dependency tree
 
Reported: 2010-01-20 15:24 UTC by Jesse Glick
Modified: 2013-12-27 16:35 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Likely patch (5.91 KB, patch)
2010-04-13 19:03 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-01-20 15:24:01 UTC
Possible now in JDK 6.
Comment 1 Jesse Glick 2010-04-13 19:03:03 UTC
Created attachment 97241 [details]
Likely patch
Comment 2 Jesse Glick 2010-04-13 19:05:58 UTC
Unfortunately does not work yet in JDK 6u18; seems the L&S impl is somewhat buggy:

 expected:<...encoding="UTF-8"?>
<[!--
Some license or whatever.
-->
<?stylesheet location="here"?>
<p>
    <t/>
    <c>
        <d>
            <s/>
        </d>
    </c>
</p]>
> but was:<...encoding="UTF-8"?>
<[p>
    <t/>
    <c>
        <d>
            <s/>
        </d>
    </c>
</p>
<!--
Some license or whatever.
-->
<?stylesheet location="here"?]>
>
        at org.openide.xml.XMLUtilTest.testIndentation2(XMLUtilTest.java:384)

expected:<...//where">
    <hello[]>there</hello>
</roo...> but was:<...//where">
    <hello[ xmlns="some://where"]>there</hello>
</roo...>
        at org.openide.xml.XMLUtilTest.testEntityIncludes(XMLUtilTest.java:478)