Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving Url inside xml element

Tags:

parsing

xml

I got this error An error occurred while parsing EntityName. Line 1, position 61. when saving this url http://www.autorentalnews.com/t_inside.cfm?action=news_pick&storyID=36229

I don't know why i can't save url like this inside xml file

the element wrote like that

<New>
<ID>8b269f29-69a1-4551-8d72-4602df4e2c7e</ID>
<Title>Industry Rallies Against Ariz. Rental Car Tax</Title>
**<SourceUrl>http://www.autorentalnews.com/t_inside.cfm?action=news_pick&storyID=36229</SourceUrl>**

any suggestions!

like image 687
Amr Elnashar Avatar asked Dec 08 '22 04:12

Amr Elnashar


1 Answers

you get this error because of the & - either replace it with &amp; or store your urls in a cdata section - i.e. <![CDATA[your-url-here]]>

like image 56
roman Avatar answered Dec 24 '22 19:12

roman