proggie7
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by proggie7
-
-
Hi!
data.xml
<?xml version="1.0" encoding="utf-8" ?> <data> <menu> <item link="http://site.com/?param=1¶m=2">Title</item> </menu> </data>
xmp_reader.php
<?php $doc = new DOMDocument(); $doc->load( 'data.xml' ); ?>
Error
Warning: DOMDocument::load() [domdocument.load]: EntityRef: expecting ';' in file:///C:/Server/local.com/www/data.xml, line: 4 in C:/Server/local.com/www\xml_reader.php on line 3
I can see that "&" symbol is causing all the trouble. What can I do about it? Can I shield it, for example?
PHP XML error when reading "&" symbol
in PHP Coding Help
Posted
It works! Thank you!