It looks like xmlparser uses parsexml. I think it boils down which API is more convenient for your use case. Probably xmlparser.
If you have a choice use JSON.