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

Summary: Use DOM 3 L&S to implement XMLUtil.write
Product: platform Reporter: Jesse Glick <jglick>
Component: -- Other --Assignee: issues@platform <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 179668    
Attachments: Likely patch

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)