• Hugo Kornelis (5/21/2010)


    How did you try to open the file? I followed these steps:

    - Run code with output to text mode

    - Select output, right-click, Copy

    - On desktop: right-click, New, Text file

    - Double-click "new text file.txt"; click edit / paste; save changes and close editor

    - Right-click "new text file.txt"; click rename; change ".txt" to ".xml"

    - Double-click "new text file.xml" or right-click, click Open with, Internet Explorer (use Choose program if it's not in the list)

    Not quite the same, but I've now done exactly the above and get the same error.

    Note - the error appears in a popup window. I've a feeling that depending on your browser settings the error may show as an exclamation mark in the status bar instead, double-clicking shows the error.

    Hugo Kornelis (5/21/2010)


    The explanation does not sayy that these characters are invalid in any environment; they are indeed invalid, but browsers may choose to support them anyway. IE does that, Firefox doesn't (I just tested this).

    Just because a browser might display it doesn't mean it's valid!

    IE can cope with all sorts of invalid HTML as well, making (sometimes correct!) guesses about what is intended, but the HTML is still wrong.