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: | Auto Update cannot load update description using <!ENTITY> includes | ||
---|---|---|---|
Product: | platform | Reporter: | Jesse Glick <jglick> |
Component: | Autoupdate | Assignee: | issues@platform <issues> |
Status: | VERIFIED DUPLICATE | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jesse Glick
2000-10-18 18:36:07 UTC
It may be that you can use entity includes, but not for the document root element. Thus, the *.entities would include <module>....</module>, while the *.xml would be <?xml?>, <!ENTITY>, then <module_description>, then $all-updates;, then </module_description>. Please try that also. 1. <!ENTITY all_modules..> tag must be used only within DTD or <!DOCTYPE...> tag. 2. &all_modules cannot be used at the top level. So, you can include autoupdate dtd, and use: <module_updates>&all_modules</module_updates> However, there is one problem more: AU use DOM parsing and generated DOM-tree has different structure then if I use the same XML, but without entity include - all nodes in *.entities file are shifted one level down in DOM-tree. e.g. method document.getDocumentElement().getChildNodes() doesn't return <module_group>... method document.getElementsByName( "license" ) doesn't find <license> tag. I talked about this problem with Petr Kuzel and in his opinion it's problem of SUN's parser. Resolved for 3.3.x or earlier, no new info since then -> closing. Resolved for 3.3.x or earlier, no new info since then -> closing. A mistakenly closed RESOLVED LATER/REMIND issue. Reopening. *** This issue has been marked as a duplicate of 33097 *** verified duplicate |