Java XML parser.
Very light. (less than 20K).
Bind XML to java classes. (like JAXB).
Written from scratch to avoid some legacy problems.
Code sample:
import javax.xml.bind.annotation.XmlElement;
import dummyxmlparser.XmlBinder;
public class Foo {
@XmlElement
public String counter;
public static void main(String[] args) throws Exception{
Foo foo= XmlBinder.fromXml(Foo.class, "<Foo><counter>42</counter></Foo>");
assert foo.counter.equals("42");
}
}