\[code\]$rss = new DOMDocument();$rss->load($url);\[/code\]If I am expecting user to give any rssfeed link to get xml document, and user is trying to give any random link which doesn't contain any xml document. It will certainly display an error or warning. How can I validate this situation?