%%% XML writing tests

:- eval(xml_write()).

xml_write() :-
	Document = XML("bib.xml"),
	Doc = Document.getDocument(),
	OutputFormat = org.apache.xml.serialize.OutputFormat(),
	XMLSerializer = org.apache.xml.serialize.XMLSerializer(System.out,OutputFormat),
	XMLSerializer.serialize(Doc).
