Adam - 2010-02-27 13:46:22
I have the following xml
<Catalog>
<Site>
<Category><![CDATA[General]]></Category>
<Id>IDFORSITE</Id>
<Title><![CDATA[A title here.]]></Title>
<Description><![CDATA[A description here]]></Description>
<Gravity>2.48287</Gravity>
<PercentPerSale>75.0</PercentPerSale>
<ActivateDate>2010-02-06</ActivateDate>
</Site>
<Site>
.... etc
</Site>
</Catalog>
but this class fails here:
$xml_tbl_struct = $xml_tbl->getElementsByTagName("structure")->item(0)->nodeValue;
with this error:
Trying to get property of non-object in /path/to/mysql_db_xml_2_schema.php