This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I am relatively new to XML / XSL and have a question regarding how I can insert some XML into another XML file.
I have an automated daily build process, using ANT, which invokes JUnit to produce a set of results. I then run an XSLT transform over the results to produce an XML file (Summary.XML) of summary information. This process works fine.
I want to create a History XML file of the results for all days. So I would like to add the information from my Summary.XML file to the end of my History.XML file. In this way I can build up a single XML file of all of the results, which I can graph, chart, do whatever with.
But I cannot append the contents of Summary.XML to the end of History.XML since this would create invalid XML. Is there a way in my XSL transfrom to insert the produced XML to the end of an existing XML file?
I'm really not sure what the best approach is to achieve what I want, so any help or advice would be greatly appreciated.
I had a similar problem with merging chunks of XML from online surveys. I ended up writing a general purpose XML chunk merging utility routine described in this article. You can download the source from my web site at www.wbrogden.com Bill