public function getDirectChildren($tag)
{
$children = array();
$root = $this->element->firstChild && $this->element->firstChild->nodeName == 'bundle' ? $this->element->firstChild : $this->element;
foreach ($root->childNodes as $child) {
if ($child->nodeName == $tag) {
$children[] = $child;
}
}
return $children;
}