How to control the height of a rectangle using external xml file?

Hi,

I want to create a rectangle which is to be adjusted as per the input provided in external xml file. It requires daily changes in its height as I want to make a bar chart.

Please help me with any similar example/code.

Thanks.