XML adding attribute
===

I want to add two attributes onto an element something like this:

    $tutTag->appendChild($xmlDoc->createElement("Port", $serv->STMPPort))->setAttribute("type","int")->appendChild->setAttribute("y","l");

in this case, "type" and "int" get added just fine, but the second set "y" and "l" do not get added. How do i fix this?