09-05-2012 06:01 AM
While I am getting data from XML if I use any symbol except then '&' it is working fine. But for '&' it giving this error:
No source available for "SyncCondvarWait_r() at 0xb0d5bc76"
When I use this below tag it's working fine.
<employee name="Brajesh" job="BB7 $ BB10 Developer" salary="1.2" age="" experience="1.3"/>
when I use this below tag it's getting above error.
<employee name="Brajesh" job="BB7 & BB10 Developer" salary="1.2" age="" experience="1.3"/>
if anyone have any solution for this problem then help me..
Solved! Go to Solution.
09-05-2012 02:39 PM
Have you tried using: & ?
e.g.:
<employee name="Brajesh" job="BB7 & BB10 Developer" salary="1.2" age="" experience="1.3"/>
Martin
09-06-2012 01:11 AM
Hi mgoulet,
When i am Using "&" it's working fine.
But can u explain me what's the problem in "&".
09-06-2012 04:37 AM
BrajeshSanodiya wrote:
When i am Using "&" it's working fine.
But can u explain me what's the problem in "&".
In XML documents the characters "<" and "&" denote the start of markup and may never appear in content outside of a CDATA section. If they do they are interpreted as markup by the XML parser. If you want to include a literal "&" in content you have to escape it. You can do this by using special markup like "&", by using a numeric character reference or you could use a CDATA section.