Alternate implementation to compare XML