Hello, @omar-salamah, @peterjones and All,
@omar-salamah :
Actually, here is your goal :
You have a first File1.xml file containing N pure blank lines
You have a second File2.xml file, below, containing M non-empty lines, with M <= N
<nominal>8</nominal>
<min>4</min>
<nominal>3</nominal>
<min>1</min>
<nominal>2</nominal>
<min>1</min>
<nominal>0</nominal>
<min>0</min>
<nominal>0</nominal>
<min>0</min>
<nominal>5</nominal>
<min>4</min>
<nominal>0</nominal>
<min>0</min>
<nominal>0</nominal>
<min>0</min>
<nominal>3</nominal>
<min>1</min>
<nominal>3</nominal>
<min>1</min>
<nominal>2</nominal>
<min>1</min>
<nominal>10</nominal>
<min>8</min>
<nominal>0</nominal>
<min>0</min>
<nominal>3</nominal>
<min>1</min>
<nominal>0</nominal>
And each non-empty line of File2.xml must replace the next pure empty line of File1.xml !
The @peterjones’s python script, of course, works correctly using the minimal layout of File2.xml, too
Best Regards,
guy038