If the XML we edit has a schema, NetBeans will provide dynamic code completion. This is a very cool feature, because code completion is now available if the XML document has a schema attached. For example we create a Cocoon sitemap file in NetBeans and use the schema xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0 http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd"
. NetBeans will read in the schema file and provide code completion based on the schema. See the following screenshots of the code completion offered for the sitemap file: