possible duplicate:
problem simplexml , entity not being defined
i have tag entity in xml file:
<comune>forli'</comune>
simple xml in php fail parse file:
warning: simplexmlelement::__construct() [simplexmlelement.--construct]: parser error : entity 'igrave' not defined
how can do?
i tried small example , worked me
xml:
<?xml version="1.0" encoding="utf-8"?> <comune> <comune>forli'</comune> </comune>
php:
$xml = simplexml_load_file('test.xml'); foreach($xml->children() $child){ echo '<pre>'; print_r((string)$child); echo '</pre>asd'; }
output:
forli'
Comments
Post a Comment