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.
When collapsing XML-tags, only the tag's name is currently displayed. I think it would make sense to also show the attributes and their value to be able to distinguish lists with tags of the same name. E.g., instead of: <table> <table> . . . display: <table name="users" ...> <table name="groups" ...> . . .
Might be useful, but would require a heavy user configuration. In general it is not possible to guess which of the attributes is the 'most important one'. Either some heuristic must be applied (show only when there's a single attribute ? Some specific attribute names - id,name,...) or user configuration based on QName must be provided. Specific modules (e.g. Spring, JSF, XSL) might register some metadata or comment readers that support more sensible for their XML documents. BTW definitely not a P1 enhancement, the gain from the feature is not that enormous.
Indeed, I cannot think of any useful heuristic, and configuration might be overkill in relation to the possible benefits (except for on/off maybe, in case a user wants a clean overview). I'd suggest to be pragmatic and just list the attributes in the order they appear in the node, usually there is also some reasoning underlying that. Sorry for the wrong priority, I assumed that 'higher number' means 'higher priority'.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss