gen.setCompatible(false);
gen.setIncludeDocumentation(true);
writer.getBuffer().setLength(0);
gen.generate(new XMLWriter(writer), s_metaList.iterator(), "baseURI");
validateDocument(XMLUtil.parse(new StringReader(writer.toString())), "baseURI", true, false);
writer.getBuffer().setLength(0);
gen.generate(new XMLWriter(writer), s_metaList.iterator(), null);
validateDocument(XMLUtil.parse(new StringReader(writer.toString())), "", true, false);
gen.setCompatible(true);
writer.getBuffer().setLength(0);
gen.generate(new XMLWriter(writer), s_metaList.iterator(), null);
validateDocument(XMLUtil.parse(new StringReader(writer.toString())), "", false, false);
gen.setMask(new String[]{"TestMetaTypeMasked"});
writer.getBuffer().setLength(0);
gen.generate(new XMLWriter(writer), s_metaList.iterator(), null);
validateDocument(XMLUtil.parse(new StringReader(writer.toString())), "", false, true);
}