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.
The Java editor allows to specify custom fold (http://wiki.netbeans.org/FaqCustomCodeFolds) and even has a hint to generate such a fold: http://wiki.netbeans.org/SurroundWithCodeFolding This would be very helpful for the XML editor as well.