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.
What I want to do is get a new <reading> element with its children (I know how to create one) and insert it at the end of the <readings> element after the last child of <readings>
But the problem is that it needs to be inserted in to a specific device based on its <name> element value, not all of them. How would I do this with the way the file is written now?
I understand if the file is not written in the best way to allow this but modifying how the file is written would require re-doing a lot of my java code so if it is possible I would rather go ahead with that.