Checks script tag content to be valid XML.