function chain(stream, state, parser) {
        state.tokenize = parser;
        return parser(stream, state);
    }
xmlpure.js

Building upon and improving the CodeMirror 2 XML parser
@author: Dror BG (deebug.dev@gmail.com)
@date: August, 2011