hangs ? Well, try to copy client_state.xml in different locaation before running script. If script re-created while it accessed by script some undefined behavior possible.
And it should? There are many other lines in client_state.xml before first <result> tag approaches...
I have no CPU AP
Let "someone else's" be your, post client_state, please, for test.
Or if anyone wants a .Net app I've got one that does the same (except haven't figured out how to get the ATI AP blanking % yet)But will retrieve all the same info for Cuda MB, ATI MB and ATI AP, that I can make available