That's not just a bad xml that is checked by this method.
There could be the case when:
1. error source could not be detected during xml parsing and "false" (boolean) is returned instead of root node object of xml document;
2. error source could be detected and then xml node object with ERROR word as it's name is returned.
Then you need to test:
- very malformed (or maybe empty string as input) xml
- little bit malformed xml
- good xml.