Found 1 intresting but strange problem while reading XML [modified]
-
All, I am getting follwing error while reading my XML file directly returned from web service. This occurs normally when XML have some misplaced node, but my XML is returned from webservice with few chances to have node errors. Can any one help me regarding this problem. My error page is: Server Error in '/portal' Application.-------------------------------------------------------------------------------- This is an unexpected token. The expected token is 'NAME'. Line 778, position 626. 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: This is an unexpected token. The expected token is 'NAME'. Line 778, position 626. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. And my stack trace is:
[XmlException: This is an unexpected token. The expected token is 'NAME'. Line 778, position 626.] System.Xml.XmlTextReader.SetAttributeValues() +323 System.Xml.XmlTextReader.ParseElement() +138 System.Xml.XmlTextReader.Read() +94 System.Xml.XmlValidatingReader.ReadNoCollectTextToken() +38 System.Xml.XmlValidatingReader.Read() +14 System.Xml.XmlLoader.LoadCurrentNode() +612 System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +49 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +102 System.Xml.XmlDocument.Load(XmlReader reader) +72 System.Xml.XmlDocument.LoadXml(String xml) +163 AI.Portal.Web.UI.RailBooking.ProcessGet() AI.Portal.Web.UI.BaseDialog.ProcessRequest() AI.Portal.Web.UI.HttpHandler.ProcessRequest(HttpContext context) System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
I am using Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407 Thanks in advance for any help. AnandAnand Desai Developer Atharva Infotech
modified on Tuesday, April 22, 2008 8:23 AM
-
All, I am getting follwing error while reading my XML file directly returned from web service. This occurs normally when XML have some misplaced node, but my XML is returned from webservice with few chances to have node errors. Can any one help me regarding this problem. My error page is: Server Error in '/portal' Application.-------------------------------------------------------------------------------- This is an unexpected token. The expected token is 'NAME'. Line 778, position 626. 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: This is an unexpected token. The expected token is 'NAME'. Line 778, position 626. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. And my stack trace is:
[XmlException: This is an unexpected token. The expected token is 'NAME'. Line 778, position 626.] System.Xml.XmlTextReader.SetAttributeValues() +323 System.Xml.XmlTextReader.ParseElement() +138 System.Xml.XmlTextReader.Read() +94 System.Xml.XmlValidatingReader.ReadNoCollectTextToken() +38 System.Xml.XmlValidatingReader.Read() +14 System.Xml.XmlLoader.LoadCurrentNode() +612 System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +49 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +102 System.Xml.XmlDocument.Load(XmlReader reader) +72 System.Xml.XmlDocument.LoadXml(String xml) +163 AI.Portal.Web.UI.RailBooking.ProcessGet() AI.Portal.Web.UI.BaseDialog.ProcessRequest() AI.Portal.Web.UI.HttpHandler.ProcessRequest(HttpContext context) System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
I am using Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407 Thanks in advance for any help. AnandAnand Desai Developer Atharva Infotech
modified on Tuesday, April 22, 2008 8:23 AM