function __construct( $source ) {
$this->reader = new XMLReader();
$this->reader->open( $source, null, LIBXML_NOERROR | LIBXML_NOWARNING );
- #$this->reader->setParserProperty( XMLReader::DEFAULTATTRS, FALSE );
- #$this->reader->setParserProperty( XMLReader::DEFAULTATTRS, FALSE );
- #$this->reader->setParserProperty( XMLReader::VALIDATE , FALSE );
$this->metadata['width'] = self::DEFAULT_WIDTH;
$this->metadata['height'] = self::DEFAULT_HEIGHT;
* @param String $name of the element that we are reading from
*/
private function animateFilter( $name ) {
- $this->debug ( "animate filter" );
+ $this->debug ( "animate filter for tag $name" );
if( $this->reader->nodeType != XmlReader::ELEMENT ) {
return;
}
+ if ( $this->reader->isEmptyElement ) {
+ return;
+ }
$exitDepth = $this->reader->depth;
$keepReading = $this->reader->read();
while( $keepReading ) {