public function printObj($depth = 0)
    {
        $s = str_repeat("\t", $depth) . $this->name . " " . $this->ns . ' ' . $this->data . "\n";
        foreach ($this->subs as $sub) {
            $s .= $sub->printObj($depth + 1);
        }
        return $s;
    }
public function printObj($depth = 0)
    {
        $s = str_repeat("\t", $depth) . $this->name . " " . $this->ns . ' ' . $this->data . "\n";
        foreach ($this->subs as $sub) {
            $s .= $sub->printObj($depth + 1);
        }
        return $s;
    }
public function printObj ( $ depth = 0 ) { $ s = str_repeat ( "\t" , $ depth ) . $ this -> name . " " . $ this -> ns . ' ' . $ this -> data . "\n" ; foreach ( $ this -> subs as $ sub ) { $ s .= $ sub -> printObj ( $ depth + 1 ) ; } return $ s ; }
Dump this XML Object to output.

@param integer $depth
Dump this XML Object to output .