alloct wrapper from xml defination.