Hi Chaitanya,
there is no need to change the xml files. You can directly add the positions in your code. Just create an empty micgeom object and set the positions. Example for a rectangular array:
from acoular import MicGeom
from numpy import meshgrid , linspace
#micgeom
m = MicGeom ()
#grid positions
xs = linspace(0, 1, 10)
ys = linspace(0, 1, 10)
zs = linspace(1, 1, 100)
xx, yy = meshgrid(xs, ys)
mpos= array ( ( xx.flatten() , yy.flatten() , zs))
#set positions of the micgeom
m.mpos_tot = mpos
Cheers,
Simon