The XML editor below has an autocomplete function. You can press ctrl + space to activate it. Autocompletion works for opening XML tags, closing XML tags and for XML attributes.
Below you see the Relax NG schema file that is used for the autocompletion in this demo. This schema file is converted into a CodeMirror schemaInfo object. You can see the schemaInfo object in your webconsole.
And here you see the schemaInfo object that is created from from the Relax NG schema. The schemaInfo object is created by a call to toSchemaInfo from schemainfoCreator.js.