BTXML Error Message 3908: Required White Space Missing
Symptom
When running a BTXML in BarTender Designer, you receive Error Message 3908: Required white space missing.
Error Message #3908
An error occurred during BTXML Script processing:
Required white space was missing.
Line 1, Column 22: '<XMLScript Version=""2.0"" Trusted=""true"">' while parsing: "C:\Users\SeagullVM\Desktop\axiom_btxml.txt"
Error 3908 covers a multitude of BTXML errors, so this article specifically covers this case.
Applicable to
BarTender 2019 and later
BarTender Designer
Solution
The error message refers to the double quotes. XML uses single quotes, so in this instance, BarTender assumes that the parameter value is contained between the quotes and a space, or a > should follow afterward.
To fix this issue, change all double quotes to single quotes and the error message goes away.
Take a look at the BTXML itself. Here is an example of the BTXML that caused this error. Note how the parameters use double quotes:
<XMLScript Version=""2.0"" Trusted=""true"">
For comparison, this is a properly formed BTXML script using single quotes:
<XMLScript Version="2.0" Trusted="true">