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.
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
Created attachment 97241 [details]
Likely patch
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)
|