You are here: How can I write ampersand(&) symbol in XML file? « PHP Programming Language « IT news, forums, messages
How can I write ampersand(&) symbol in XML file?

Posted by Php Developer on 01/08/08 17:28

I am trying to write "http://www.youtube.com/v/8mVuBC7hQnU&rel=1"
in an XML file as
$nlink->appendChild($this->createElement('URI','http://www.youtube.com/
v/8mVuBC7hQnU&rel=1'));
It gives me error as DOMDocument::createElement()
[function.DOMDocument-createElement]: unterminated entity reference
rel=1
My question is How can I write ampersand(&) symbol in XML file ??
I also tried as $nlink->appendChild($this->createElement('URI','abc
& xyz'));
But It didnt solve my problem.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация