determine sparse model structure from XML description