I have a strange issue when trying to load certain XML documents via xmlDocument.Load. I am using xmlDocument.Load to load XML docs from a client. Almost all of them refuse to load with the error listed below.
Server Error in '/' Application.
'al:schemaLocation' is a duplicate attribute name. Line 2, position 248.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.XmlException: 'al:schemaLocation' is a duplicate attribute name. Line 2, position 248.
Is there a way to get xmlDocument.Load to load the XML file even though it encounters this duplicate attribute name?
View Complete Post