Assume that we have config properties for an object by xml or xmllist as below:

  
<attributes>
	<x>-10</x>
	<y>45</y>
	<scaleX>0.9</scaleX>
	<scaleY>0.9</scaleY>
</attributes>


Here is the function applies properties from xml to target object: