Please have a look at the http://xml.apache.org site.This site has many open source projects likeXerces,FOP that allows the manuplation of DOMstructures...