final XmlParser xmlParser,
final Attributes attributes) throws Exception {
String filename = attributes.get("filename");
Schema niftyXmlSchema = new Schema();
XmlParser parser = new XmlParser(new MXParser());
InputStream stream = ResourceLoader.getResourceAsStream(filename);
try {
parser.read(stream);
parser.nextTag();
parser.required("nxs", niftyXmlSchema);
types.putAll(niftyXmlSchema.getTypes());
xmlParser.nextTag();
} finally {
stream.close();