I don't understand this "clicking" and "automation" business, except when you say "image" it makes me suspect you really want to get the src attribute from that element. And it would help if the example you had posted were well-formed XML. The fact that isn't implies that we aren't looking at the real data and so we are working in the dark.
However I still say the answer is
Joined: Sep 20, 2006
Thanks to Purushothaman and Paul for prompt responses...
The reason why the above expresions ( //table/input ) did not work because ... table is not immediate parent of input tag as can be seen above...
So the correct XPtah expression that worked for me is..//table/th/input[@title='Expand Folder']