protected function determineTagType($targetType) { // do we have a specific tag to look for? if (isset($this->tagTypes[$targetType])) { return $this->tagTypes[$targetType]; } // no, so return the default to feed into xpath return '*'; }