Hi, I am very very new to xml. I am developing an application which uses xml file. I created this file with the help of Google. My sample xml file is:
<?xml version="1.0"?>
<gamelist>
<game>
<title>Driver</title>
<code><EMBED src="http://www.pnflashgames.com/modules/pnFlashGames/games/racer.swf"></EMBED></code>
<rating>4</rating>
</game>
<game>
<title>ConeCrazy</title>
<code><EMBED src="http://www.pnflashgames.com/modules/pnFlashGames/games/ConeCrazy.swf"></EMBED></code>
<rating>3</rating>
</game>
</gamelist>
In the above file code element is having embed tag. For my application I need embed tag as a string. In code element if I use any string instead of embed tag I can read that string. If I use embed tag I am getting error like this:
[fatal error] gamelist.xml:5:103 : reference to entity "pn_uname" must end with the ";" delimeter .
I am using Java for reading xml file. In my Java class I want the whole embed tag as a string.