public TinyXMLTest(String type, String fname) {
filename = fname;
prefix = " ";
try {
XMLParser xp = new XMLParser();
if (type.equals("xml"))
xp.parseXML(this);
if (type.equals("dtd"))
xp.parseDTD(this);
} catch (ParseException e) {
System.out.println(e.toString());
}
}