XmlMirror is a plugin for CodeMirror that enhances XML editing when a Relax NG schema or XML schema is supplied.