For what it's worth, you could also (as of PHP 5.2.0) forego the use of getNamespaces() and instead tell children() to look for a matching prefix by setting the 2nd parameter to true: $entry->children('dxp', true)