This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
As salvin francis said, your XML is hard to read, but if my assumption about your requirements is correct, you could use a series of Transformers to produce the output documents. Make their input come from an XMLFilter and just pass your SAX events on to that filter.