Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML error while retrieving data

Status
Not open for further replies.

NoviceNet

Programmer
May 26, 2005
15
US
I am retrieving documents over HTTP channel using winHttp and XML objects. I came across this error recently. Any idea what could be wrong?


Description: This is an unexpected token. The expected token is 'WHITESPACE'. Line 1, position 50.
System.Xml
Stack Trace: at System.Xml.Schema.DtdParser.SkipWhitespace(Boolean fRequired)at System.Xml.Schema.DtdParser.ParseExternalID()
at System.Xml.Schema.DtdParser.ParseDocTypeDecl()
at System.Xml.Schema.DtdParser.Parse()
at System.Xml.XmlTextReader.ParseDtd(XmlScanner scanner)
at System.Xml.XmlTextReader.ParseTag()
 
// Ignore whitespace
xmlreader->WhitespaceHandling = WhitespaceHandling::None;


You have line breaks or added whitespace characters in your XML file. Include the line above in your code and it should solve things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top