proggie7 Posted February 22, 2010 Share Posted February 22, 2010 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? Quote Link to comment Share on other sites More sharing options...
sader Posted February 22, 2010 Share Posted February 22, 2010 in xml change & > & Quote Link to comment Share on other sites More sharing options...
proggie7 Posted February 22, 2010 Author Share Posted February 22, 2010 It works! Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.