I have committed the xmldecl (version and encoding) and doctype fix so that MasterView will output those if they are supplied in the template.<br><br>In fixing the doctype issue, I discovered that the sax2 parser in REXML was not triggering the doctype event. Checking the code confirmed this as well as the missing test case.
<br><br>I pulled the latest REXML code version 3.1.5, created a couple test cases and a fix for the doctype issue. I submitted them to the REXML trac site with the patch for all of the above.<br><br>Since REXML is normally shipped with Ruby, it is likely that our users will have a broken version for quite some time. 
<br><br>So using the patched code I created our own custom sax2 parser called Sax2ParserWithDoctypeFix and baseparser BaseParserWithDoctypeFix so that MasterView can use the patched code immediately. Once REXML applies the patch I sent them and we can determine a release number for it, then we can conditionally use these classes or the core REXML classes (if&nbsp; user has the lastest version). For right now I always use the patched classes until we can determine a version to check.
<br><br>These two patched classes live in<br>masterview/lib/rexml/parsers<br><br>Since we have created our own classes we will not interfere with anyone using the core classes.<br><br>The REXML bug fix ticket is 92<br><a href="http://www.germane-software.com/projects/rexml/ticket/92">
http://www.germane-software.com/projects/rexml/ticket/92</a><br><br>Jeff<br>