Added offset parameter support for XML serialization