Looking to subject, it seems you need a solution using
Java.
Do you know how to read file? Write new file?
Do you know exact xml structure upfront? Repetition of same tags doesn't matter, but are they always go in same sequence and always same tags?
In case you can answer to those question above - yes, seems that you could write fairly simple parser and accomplish that job.
Now, if you never had any experience with Java yourself, you'll have hard times probably.
As an aside note: people here don't work on urgent basis as well as don't provide complete solutions, but they are more than happy to help going through some sort of struggle finding a solution.
How much Java experience you have?