The object model is pretty much spot on with respect to the XML. The only trouble is in accessing the nodes correctly. There is a method which handles this type of multiple instances with respect to properties and it is getElement(nodeName, instance)
To access properties like the edge colour use the following:
TextField1.ui.oneOfChild.border.getElement("edge", 0).color.value = "192,0,0";
TextField1.ui.oneOfChild.border.getElement("edge", 1).color.value = "0,192,0";
TextField1.ui.oneOfChild.border.getElement("edge", 2).color.value = "0,0,192";
TextField1.ui.oneOfChild.border.getElement("edge", 3).color.value = "192,192,192";
It should display a multi-colour border. I set the field to have a solid edge.