Validate XML tags in converting JSON to XML