I want to add two attributes onto an element that looks 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?