This lecture covers XML and the host of technologies associated with it. Using XML tools you should be able to access an XML document, ensure it is well-formed and valid, process it, modify it, transform it, and then save or serve the new XML document.
See xmltech.pdf
Card*.xml/xsd in the Resource Directory as processed by programs DOM and ValidateModify and Tranform to see how trivial it is to modify and save XML documents.Xslt.java. It implements the transformation given the xml/xsl pair and produces the output on standard output.S?.xsl stylesheets one by one and in order.