Integration methods comparison of using XML and API