In this case, I change the content of the TD dinamically and it depends on the content if I need the valign to be "middle" or "top"
This was an easy one
document.getElementById(document.getElementById('myContentDiv').parentNode.id).vAlign = "top"
In this case, I can't tell the id of the parent of the content, it could be anyone.
The "attribute" properties doesn't seem to work in an XML approach... I need to put all this long ugly line to make it work... weird.