Finding targets in the xml.  Basic error handling.