Code:
$db = ADONewConnection( 'mssql' );
$db->Connect( 'localhost', 'test', 'test', 'test' );
$schema = new adoSchema( $db );
$sql = $schema->ParseSchema( "error_1.xml" );
$result = $schema->ExecuteSchema( $sql );
if($result)
print $db->errorMsg();
else
print $result;
print "<br>";
foreach($sql as $stmt)
print $stmt ."<br>";
XML:
<?xml version="1.0"?>
<schema version="0.2">
<table name="events">
<field name="id" type="I" size="11">
<KEY/>
<AUTOINCREMENT/>
</field>
<field name="title" type="C"
size="50">
<NOTNULL/>
</field>
<field name="description"
type="X"></field>
<field name="eventdate" type="D">
<NOTNULL/>
<DEFAULT value="0000-00-
00"/>
</field>
<field name="eventtime" type="T">
<NOTNULL/>
<DEFAULT
value="00:00:00"/>
</field>
<index name="id">
<UNIQUE/>
<col>id</col>
</index>
<index name="id_2">
<col>id</col>
</index>
<data>
<row><f>338</f><f>5 x
juniorturnering Th. Bjørn Cup</f><f>1. tee lukket
16.45-18.00 & 10. tee lukket 16.45-
17.30</f><f>2004-04-19</f><f>11:29:00</f></row>
<row><f>339</f><f>Tirsdagsformiddagsdamer
(18 huller)</f><f></f><f>2004-04-
20</f><f>11:29:00</f></row>
<row><f>340</f><f>Tirsdagsdamer (9 huller)
</f><f></f><f>2004-04-20</f><f>11:29:00</f></row>
<row><f>341</f><f>Tirsdagspiger (18 huller)
</f><f></f><f>2004-04-20</f><f>11:29:00</f></row>
<row><f>342</f><f>Onsdagsherrer</f><f></f>
<f>2004-04-21</f><f>11:29:00</f></row>
<row><f>343</f><f>Torsdagsseniorer - 1.
& 10. tee</f><f></f><f>2004-04-
22</f><f>11:29:00</f></row>
<row><f>344</f><f>Club
37+ - 1. & 10. tee</f><f>Indspilgreen lukket kl.
15.00-16.00</f><f>2004-04-
22</f><f>11:29:00</f></row>
<row><f>345</f><f>Thorsdagskaninturnering -
bagni</f><f>10. tee lukket fra kl. 16.15-
17.15</f><f>2004-04-22</f><f>11:29:00</f></row>
<row><f>346</f><f>InGolf
turnering - eclectic</f><f>1. tee lukket kl. 8.30-14.00
& 10. tee kl. 10.00-15.00</f><f>2004-04-
24</f><f>11:29:00</f></row>
<row><f>347</f><f>2. div.
Herrer</f><f>1. tee lukket kl. 7.30-10.30 & ca.
12.45-15.00. 10. tee lukket 9.00-11.30 & 14.00-
16.00</f><f>2004-04-25</f><f>11:29:00</f></row>
<row><f>348</f><f>1
juniorturnering Th. Bjørn Cup</f><f>1. tee lukket
kl. 16.30-17.30</f><f>2004-04-
26</f><f>11:28:00</f></row>
<row><f>349</f><f>Tirsdagsformiddagsdamer
(18 huller)</f><f></f><f>2004-04-
27</f><f>11:28:00</f></row>
</data>
</table>
</schema>
Logged In: YES
user_id=345539
This is a bug in adodb-datadict. I believe it is addressed
in the current release of adodb.
Logged In: YES
user_id=345539
My bad, wrong bug in the previous response.
This appears to be an issue in correctly encoding data
within the xml. Could you please give us more useful
information, such as the content of line 28 of the offending
schema, as posting the whole schema results in it being wrapped.