Little XML Help

Ok, here is my problem:
I am creating a literature section from an xml file. I want to put the title and info of it in a text field, then place 2 buttons (both currently in one MC) directly below the description. As you can see from the picture, it seems to be working. It is pretty stable except for the stupid if/else statement I had to use where I count the characters. Then I use the character count to determine how big the text box should be, the place the buttons so many pixel below the baseline of the textbox. As you can imagine, this could be unstable because 20 “W’s” will take up more space than 20 “I’s”. I can forsee in the future having a description that will cause the buttons to be an extra line down or up and look out of whack. I can’t figure out a better way to go about this. Does anybody have any suggestions or an easier way to go about this? Thanks.

for (i=0; i<doc.childNodes[1].childNodes.length; i++) {
clip = container.attachMovie(“Library Item”, “libItem”+i, i);
clip2 = container.attachMovie(“View Download”, “viewDown”+i, (i+Number(doc.childNodes[1].childNodes.length)));
clip2.file = doc.childNodes[1].childNodes*.childNodes[3].childNodes[0].nodeValue;//name of pdf file the buttons will open//
clip2.size.text = “(”+doc.childNodes[1].childNodes*.childNodes[2].childNodes[0].nodeValue+“)”;//show size of pdf file//

//info2 is the textfield that the title and information goes into//
clip.createTextfield("info2", i, 0, 0, 277, 10);
clip._x = -55;
clip2._x = 8;

//textbox attributes//
clip.info2.html = true;
clip.info2.wordWrap = true;
clip.info2.multiline = true;

//insert information into textbox (info2)//

clip.info2.htmlText = “<font face=‘Arial’><b>”+doc.childNodes[1].childNodes*.childNodes[0].childNodes[0].nodeValue+“</b>”+" - “+doc.childNodes[1].childNodes*.childNodes[1].childNodes[0].nodeValue+”</font>";

//determines height of text box based on characters, this is where I need the most help//
if (clip.info2.length&lt;=46) {
    clip.info2._height = 17.4;
} else if (clip.info2.length&gt;=47 && clip.info2.length&lt;=100) {
    clip.info2._height = 35.8;
} else if (clip.info2.length&gt;=101 && clip.info2.length&lt;=160) {
    clip.info2._height = 50;
} else if (clip.info2.length&gt;=161 && clip.info2.length&lt;=210) {
    clip.info2._height = 66;
} else if (clip.info2.length&gt;=211 && clip.info2.length&lt;=270) {
    clip.info2._height = 78;
}

//determines spacing//    
clip._y = myHeight+20;
clip2._y = clip._y+clip._height;
myHeight = clip._y+clip._height;

}