Can I somehow automate the process of level development?

Hi!
I have game mahjong and I have levels.

<data>
  <layer>
	<tile x="0" y="0.5"/>
	<tile x="1" y="0.5"/>
	<tile x="2" y="0.5"/>
	<tile x="3" y="0"/>
	<tile x="3" y="1"/>

	<tile x="4" y="0.5"/>
	<tile x="5" y="0"/>
	<tile x="5" y="1"/>

	<tile x="6" y="0.5"/>
	<tile x="7" y="0.5"/>
  </layer>
</data>

<data>
  <layer>
    <tile x="3.5" y="0"/>
    
    <tile x="2" y="1"/>
    <tile x="3" y="1"/>
    <tile x="4" y="1"/>
    <tile x="5" y="1"/>

    <tile x="1" y="2"/>
    <tile x="2" y="2"/>
    <tile x="3" y="2"/>
    <tile x="4" y="2"/>
    <tile x="5" y="2"/>
    <tile x="6" y="2"/>

    <tile x="0" y="3"/>
    <tile x="1" y="3"/>
    <tile x="2" y="3"/>
    <tile x="3" y="3"/>
    <tile x="4" y="3"/>
    <tile x="5" y="3"/>
    <tile x="6" y="3"/>
    <tile x="7" y="3"/>

    <tile x="1" y="4"/>
    <tile x="2" y="4"/>
    <tile x="3" y="4"/>
    <tile x="4" y="4"/>
    <tile x="5" y="4"/>
    <tile x="6" y="4"/>

    <tile x="2" y="5"/>
    <tile x="3" y="5"/>
    <tile x="4" y="5"/>
    <tile x="5" y="5"/>

    <tile x="3.5" y="6"/>
  </layer>

  <layer>
    <tile x="3.5" y="1"/>

    <tile x="3" y="2"/>
    <tile x="4" y="2"/>

    <tile x="2" y="3"/>
    <tile x="3" y="3"/>
    <tile x="4" y="3"/>
    <tile x="5" y="3"/>

    <tile x="3" y="4"/>
    <tile x="4" y="4"/>

    <tile x="3.5" y="5"/>
  </layer>

  <layer>
    <tile x="3.5" y="2.5"/>
    <tile x="3.5" y="3.5"/>
  </layer>
</data>

Levels may have tiles which shifted in 0.5 or 1 by Y or by X, and level can have several layers of tiles.
Can I somehow automate the process of level development?

I am just looking at using ChaiScript to allow me to do this sort of thing - so I can write script to set up the starting positions rather than xml

A bit complex to get my head around initially, but looking good now!

I have a C# program that emits semi-randomized XML and then verifies it based on a set of rules.

This way, we can build our levels during the design process, and test thing in game without hand editing.

I like C# because … Visual Studio & Easy.