XML Writer

Hi all-

I have some XML files used for automating an instrument which I want to alter based on the results of a protocol.

Does anyone know a good way to read an XML file, alter it, and write it back out as an XML?

Thanks,
Leo