public function MigrateXMLReader::valid in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/sources/xml.inc \MigrateXMLReader::valid()
Implementation of Iterator::valid().
Return value
bool Indicates if current element is valid
File
- plugins/
sources/ xml.inc, line 1114 - Support for migration from XML sources.
Class
- MigrateXMLReader
- Makes an XMLReader object iterable, returning elements matching a restricted xpath-like syntax.
Code
public function valid() {
return $this->currentElement instanceof SimpleXMLElement;
}