I'm extremely new to XML, tell me what needs to be fixed in my XML file
as well as in my javascript.
My XML file looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<imapmail>
<message>
<subject>Testin g, 123</subject>
<sender>Name <email@examp le.com></sender>
<date>1/2/03</date>
<size>640 KB</size>
<read>0</read>
</message>
</imapmail>
I'm accessing it with this javascript:
var sender =
xmlDocument.get ElementsByTagNa me("sender").it em(0).firstChil d.data;
I ultimately want to user to see that the sender is "Name
<em***@example. com>". With the way the XML file is currently set up
(sender is Name <email@examp le.com>), the only that shows up
on the javascript end is Name. Is the way I'm storing it in my XML file
the best way to be doing it?
Thanks for your help,
Trevor