1 2 3 4 5 6 7 8 9 10 11 12
| OutputFormat of = new OutputFormat("XML","ISO-8859-1",true);
XMLSerializer serializer = new XMLSerializer(System.out, of);
AttributesImpl atts = new AttributesImpl();
serializer.startDocument();
serializer.startDTD("SET", "link file//EN", "set.dtd");
serializer.notationDecl("image_jpeg", "link file//EN/JPEG", "jpegNote");
serializer.unparsedEntityDecl("file_id_1", null, "path/file_name_1", "image_jpeg");
serializer.endDTD();
serializer.startElement("","SET","SET",atts);
serializer.endElement("","SET","SET");
serializer.endDocument(); |