```php
$result = $doc->getElementById( 'id_' . $blockID );
```
is simpler :)