How can I write ampersand(&) symbol in XML file?
am 08.01.2008 18:28:44 von php.developer2007I am trying to write "http://www.youtube.com/v/8mVuBC7hQnU&rel=1"
in an XML file as
$nlink->appendChild($this->createElement('URI','http://www.y outube.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.