Portal Home > Knowledgebase > Articles Database > XML DTD
XML DTD
Posted by indicom, 09-09-2008, 07:08 AM |
Hello,
Given below are the contents of my XML file
when I try to load the above file using PHP's simplexml_load_file() function it gives me the following error ..
parser error : Entity 'trade' not defined
I know it something to do with the "Entity", but able to get it correct.
I need to have "™" as part of the itemname as it will be used to display the "Trade Mark" symbol besides itemname when displayed in an HTML page.
It would be great if some one could get it right for me..
Thanks
Last edited by indicom; 09-09-2008 at 07:11 AM.
Reason: To add new content..
|
Posted by meb124, 09-09-2008, 05:42 PM |
characters like "&" are illegal in xml.
do this:
that should do the trick!
|
Posted by bigfan, 09-09-2008, 06:56 PM |
This should get rid of the parser error:
|
Add to Favourites Print this Article
Also Read