Please be more specific. How much data do you have? How complex is your tag structure? Are you using namespaces? More than one? Do you know the encoding of the source? Will it be the same in the target? Is performance important? Is memory usage important?
The answers to these questions (and more) will determine the best solution to your problem.