- Added Rect method for loading from a XML node.