Importing XML files requires that there is a comment line. If not then the following error is returned:
Error: Wrong file format!
Error: List index out of bounds (2)
For example the following can be imported:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!-- Blah Blah -->
<HEAD>
<FieldDefs>
<FieldNo_1 Name="c_id" Type="Character(3,0)" Null="False"/>
</FieldDefs>
<RecNo_1>
<Field Name="c_id">001</Field>
</RecNo_1>
</HEAD>
However the following causes the error:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<HEAD>
<FieldDefs>
<FieldNo_1 Name="c_id" Type="Character(3,0)" Null="False"/>
</FieldDefs>
<RecNo_1>
<Field Name="c_id">001</Field>
</RecNo_1>
</HEAD>
The only difference is the comment line "<!-- Blah Blah -->".
Comments are nice but they should not be compulsory. Also the error message is very cryptic and does not help us to understand what the problem is.