Use a text editor, not a browser. Browsers render HTML entities as they should be displayed.
Also, if you just use FILETOSTR, as I said, you also don't translate the encoding by interpreting the XML by a browser, you simply read the XML text itself, which we're now interested in specifically to see if the data is correctly encoded. It's not, as a quote must be HTML encoded. The riddle is why you get out " when the XML file itself contains a simple ".
You also don't read a html file into a browser to check whether it has a certain tags of HTML entities, do you? It's called HTML entity as it's a halfways speaking abbreviation of what it is & has amp for ampersand. And a Browser displays that as &. So if you want to see whether HTML contains & or just &, you don't use a browser.
I know you finally want to read out a mail address as displayed in a browser or in Excel itself. But that depends on it being correct XML for a corrct XML reader to read it out correctly.
It seems to me Gregs class always translates " into " and " into ", so if the XML is wrong the cell value is converted, that conversion into HTML entities should only be done when writing a value into an XML node, not when reading it out as value. And to make the confusion complete, a GetXMLString shoudl read out the XML as is, just like a text editor will display it.
So in short perhaps this list of what to expect helps:
Excel Cell value or browser display:
"name" <user@domain.com>
XML file content of a tale cell tag <t> including the opening/closing tag:
<t>"name"<user@domain.com></t>
Notice: ]XML with correctly escaped characters. As already discussed in length things like pointy brackets < and > would cause havoc in the XML parsing, an inner XML just like inner HTML does never contain < or >. Exceptions confirm the rule.
GetXMLString (private method, not intended for your use, but only for internal use):
"name"<user@domain.com>
That is just the innner XML of the <t></t> tag. It's still XML, with some characters escaped as HTML entities
GetCellValue (the method of Greg's class you should use to read a cell value):
"name" <user@domain.com>
Notice: Well, in short what Excel or a browser also displays
As you get out " where I actually erroneously just set " stored within the XML, then there's something really weird about all this. At least the < and > are converted to < and >. So far, so good. I guess the XML creation then is partly okay, but not fully done. Makes me wonder. So is it actually a XSLT file created without Excel by some library or is the source Excel itself, ie data is put into sheets by Excel automation. The latter shoudl do it correctly, shouldn't it?
And you don't need a text editor, you have VFP, you can use FILETOSTR and you can use MODIFY FILE to look into any text files, like XML or HTML. Or Hexedit for any binary file. Not interpreted and rendered into a document object model or anything like that.
A browser is fine to look into XML if you want to use its features of allowing to expand or collapse nodes and subnodes, but it's not siplaying XML 1:1, that should be clear.
Chriss.