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.
</pre> XML Spec allows external parsed entities that are not well formed XML Documents (e.g. violating single root WFC). The editor should be able to treat them. <p>Possible features: <li>it should guess code completion on entity content <li>well-formess check must pass issuing warning that an entity mode is used <p> The same apply for external DTD entities. <pre>
The text based completion depends upon tokens to generate the required raw data for completion support. To get completion on entity content would require expanding the entity in the document(j.s.t) or looking at a completely new approach. In the gui mode such could be possible. I don't understand the purpose of "issuing warning that an entity mode is used". Whether entity mode is used or not should be the users prerogative. He can set or unset it using "http://xml.org/sax/features/external-general-entities" and "http://xml.org/sax/features/external-parameter-entities" or am I missing something here.
These properties controls if parser dereferences entity reference as it is parsing XML document. (Besides parameter one it does not work in Xerces.) On the other hand I mean external entities itself i.e.: my.entity file: <msg>1</msg> <msg>2</msg> It is not well formed XML document but it is well formed parsed external entity. xhtml-table.mod file: <!ENTITY % my "%ns;my"> <!ELEMENT %my; EMPTY> Treating is identical like with standalone DTD but some parameter entities need not be defined (e.g. ns may be defined at parent that references it).
Files .ent and .mod are recognized now: * .mod is recognized as regular DTD document. * .ent has separate data object and you can just open in in textual editor with syntax coloring.
Fixed long time ago