Search

Valid XML Document is Invalidated by Internet Explorer 9 and Visual Studio 2010 SP1 by vj01

Active

1
0
Sign in
to vote
Type: Bug
ID: 777314
Opened: 1/23/2013 2:53:14 PM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
Vista Home Premium 32-bit Service Pack 2
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel
Installed Version: Professional
Internet Explorer 9.0.8112.1642IC

The XML file shows an error "Entity 'type' not defined." In VS 2010 / VWD...
<?xml version="1.0" encoding="utf-8" ?>
<websiteType type="shopping">
<website address="https://www-ssl.bestbuy.com/site/olspage.jsp?id=pcat17000&type=page">
    <username></username>
    <password></password>
</website>
</websiteType>


In IE9, ActiveX object Microsoft.XMLDOM method load gives this error in the immediate window of Visual Studio 2010 / Web Developer 2010.


xmlObject.parseError
{...}
    errorCode: 0xC00CE50D
    filepos: 0x21DA
    line: 0xDD
    linepos: 0x55
    reason: "A semi colon character was expected.
"
    srcText: "    <website address="https://www-ssl.bestbuy.com/site/olspage.jsp?id=pcat17000&type=page">"
    url: "http://localhost:49310/Username_Password_Search/UsernameAndPassword.xml"

I used the valid script below:

<script type="text/javascript">
        var xmlObject;
        var xmlDocument;
        function LoadXMLDocument(xmlFile) {
            xmlObject = new ActiveXObject("Microsoft.XMLDOM");
            xmlObject.async = "false";
            xmlObject.onreadystatechange = verify;
            xmlObject.load(xmlFile);
            if (xmlObject.parseError.errorCode != 0)
                document.write("There was an error with the xml document: " + xmlObject.parseError.reason +
                " Error code: " + xmlObject.parseError.errorCode.toString());
            xmlDocument = xmlObject.documentElement;
        }
</script>
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

.NET Framework 4.0

Steps to reproduce

View the XML file below in VS 2010 SP1 / VWD 2010:

<?xml version="1.0" encoding="utf-8" ?>
<websiteType type="shopping">
<website address="https://www-ssl.bestbuy.com/site/olspage.jsp?id=pcat17000&type=page">
    <username></username>
    <password></password>
</website>
</websiteType>

And

Product Language

English

Operating System

Windows Vista

Operating System Language

English

Actual results

<?xml version="1.0" encoding="utf-8" ?>
<websiteType type="shopping">
<website address="https://www-ssl.bestbuy.com/site/olspage.jsp?id=pcat17000&type=page">
    <username></username>
    <password></password>
</website>
</websiteType>

In "&type", the "type" is marked as invalid because according to VWD 2010: Entity 'type' not defined.

Expected results

The valid XML document should not be marked in error and the XMLDOC ActiveX object should load the XML file.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 1/23/2013 at 9:59 PM
Thanks for your feedback . The product team itself no longer directly accepting feedback for Microsoft Visual Studio 2010 and earlier products. You can get support for issues with Visual Studio 2010 and earlier by visiting one of the resources in the link below:
<http://msdn.microsoft.com/en-us/vstudio/cc136615.aspx>
Posted by Microsoft on 1/23/2013 at 3:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.