index > Windows Live Search: Development > not well-formed (invalid token) error

not well-formed (invalid token) error

I keep getting this error that crashes my program:

not well-formed (invalid token) at line 1, column 1945, byte 2017 at /usr/local/lib/perl5/site_perl/5.8.7/i686-linux/XML/Parser.pm line 187

What does this error mean and is there a workaround? Looking at my log files, my initial impression is that the api chokes on special characters in html, and this in turn crashes the api.

Thanks for any help.

Regent2

C'mon, guys. Someone else should be getting this error.

Using the API, try the following query:

link:http://www.kenexa.com

This always breaks my program due to this error, while similar queries for other domains run perfectly fine.

Regent2
I'm getting the very same error....

"not well-formed (invalid token) at line 2, column 5, byte 6 at /usr/lib/perl5/XML/Parser.pm line 187"

When attempting to parse a HTML archive..... hopefully I can come up with some sort of solution. If I do I'll let you know, please do the same if you can solve it
ShayLawless
I have found an explanation for the "invalid-token" error when trying to parse certain documents. The underlying principle is that the XML::Parser module does not accept certain characters in the text:
& (ampersand, must be encoded as &
EduPerl
reply 4

You can use google to search for other answers

 

More Articles

• Use msn api search with php
• Not able to match the results
• How to change a search result?
• Search News?
• read am WSDL
• Error while using MSN Search Web Service SDK
• Client found response content of type '', but expected 'text/xml'
• how can i turn off website grouping in the API?
• Search is returning only 25 results
• Sample Timeouts
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• how can i turn off website grouping in t
• #msnb_toolbar_full_name# (HELP)
• MSN Search API implemented in ASP only
• XmlDataSource?
• Showing non-english caracters in search
• Better SDK please
• Error while using MSN Search Web Service
• MSDN Article
• msn
• Daily limits with application ID and IP
• Getting more than 250 results
• spanish spelling correction
• application ids
• Bounce on feedback email
• Problems with Web Service and PHP

Hot Articles

• MSN Search Web Service SDK Version 0.60
• Live search service not responding
• live.com too slow
• Problems with Web Service and PHP
• DateTime field
• MSDN Article
• not well-formed (invalid token) error
• Welcome to the MSN Search Web Service Fo
• Yahoo API
• Consuming MSN Search Web Service from PHP
• escaped XML string ---> XML?
• Bounce on feedback email
• Client Error
• Getting more than 250 results
• ApplicationId-Ip Specific

Recommend Articles

• I am not able to sign in on MSN messenge
• MSDN Article
• Use asynchronous Search API
• escaped XML string ---> XML?
• Sample Timeouts
• Why am I getting javascript error
• A few short questions
• live.com too slow
• Using MSN Search from aspx page - Questi
• Bounce on feedback email
• How to change a search result?
• Accessing MSN Search Web Service from Perl
• Web Server Extensions
• msn
• Results Ranking