T
Trevor
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>Testing, 123</subject>
<sender>Name <[email protected]></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.getElementsByTagName("sender").item(0).firstChild.data;
I ultimately want to user to see that the sender is "Name
<[email protected]>". With the way the XML file is currently set up
(sender is Name <[email protected]>, 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
as well as in my javascript.
My XML file looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<imapmail>
<message>
<subject>Testing, 123</subject>
<sender>Name <[email protected]></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.getElementsByTagName("sender").item(0).firstChild.data;
I ultimately want to user to see that the sender is "Name
<[email protected]>". With the way the XML file is currently set up
(sender is Name <[email protected]>, 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