Actionscript-XML-format

I am trying to generate a template where I read all
text, image and tables from XML to display in swf dynamically.

Well, I can read the XML into swf but the problem is:

  1. I cannot **format **the dynamic text got through the XML file.

  2. I cannot check the size of image and text content and decide space allocation on screen
    dynamically.

Please help
thanks
hemant