Copy of dom4j 1.6.1