here's my source XML and it's just not giving back the expect behavior when using CVISaveDocument with the format flag or without.
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is the B1586 board for the 999C relay. -->
<Board>
B1586
<TestData>
<Test>PP14 to PP27-1
<hard_ul>20</hard_ul>
<hard_ll>10</hard_ll>
<soft_ul>18</soft_ul>
<soft_ll>12</soft_ll>
<swmarker>1E3</swmarker>
<dc_offset>1</dc_offset>
<swrange>1E3-4E3</swrange>
<numpoints>5</numpoints>
<autoretry>0</autoretry>
<delay>0</delay>
<connection>IO1_POS</connection>
<connection>IO2_NEG</connection>
<connection>SHORT1</connection>
<knownfailures>D14 Reversed</knownfailures>
<knownfailures>C24 Shorted</knownfailures>
<knownfailures>H1-Q8</knownfailures>
</Test>
<Test>PP14 to PP27-2
<hard_ul>20</hard_ul>
<hard_ll>10</hard_ll>
<soft_ul>18</soft_ul>
<soft_ll>12</soft_ll>
<connection>IO2_POS</connection>
<connection>IO1_NEG</connection>
<connection>SHORT1</connection>
<knownfailures>H1-Q8</knownfailures>
</Test>
</TestData>
</Board>
loading and resaving this file, it keeps coming back as follows regardless of the format flag, sorry for the crassness but... WTF?!
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is the B1586 board for the 999C relay. -->
<Board>
B1586
<TestData>
<Test>PP14 to PP27-1
<hard_ul>20</hard_ul><hard_ll>10</hard_ll><soft_ul>18</soft_ul><soft_ll>12</soft_ll><swmarker>1E3</swmarker><dc_offset>1</dc_offset><swrange>1E3-4E3</swrange><numpoints>5</numpoints><autoretry>0</autoretry><delay>0</delay><connection>IO1_POS</connection><connection>IO2_NEG</connection><connection>SHORT1</connection><knownfailures>D14 Reversed</knownfailures><knownfailures>C24 Shorted</knownfailures><knownfailures>H1-Q8</knownfailures></Test>
<Test>PP14 to PP27-2
<hard_ul>20</hard_ul><hard_ll>10</hard_ll><soft_ul>18</soft_ul><soft_ll>12</soft_ll><connection>IO2_POS</connection><connection>IO1_NEG</connection><connection>SHORT1</connection><knownfailures>H1-Q8</knownfailures></Test>
</TestData>
</Board>