package sample;

import org.cyberneko.html.HTMLConfiguration;
import org.cyberneko.html.filters.*;
import org.apache.xerces.xni.parser.*;

public class Test {
	public static void main(String[] argv) throws Exception {
		XMLDocumentFilter[] filters = {
			new org.cyberneko.html.filters.Writer()
		};
		
		XMLParserConfiguration parser = new HTMLConfiguration();
		parser.setProperty("http://cyberneko.org/html/properties/filters", filters);
		parser.setProperty("http://cyberneko.org/html/properties/names/elems","match");
		parser.setProperty("http://cyberneko.org/html/properties/names/attrs","no-change");
		
		String systemId = argv[0];
		XMLInputSource source = new XMLInputSource(null, systemId, null);
		parser.parse(source);
	}
}
