Hi,

I'm parsing an HTML feed page with the Xpath parser. I get the error

Namespace prefix o is not defined on line 234. Error code: 201
Tag o:p invalid on line 234. Error code: 801

because in the HTML there is the tags:

<o:p></o:p>

This is making the complete parser fall over and no context is returned although it only appears once (maybe by mistake) in the complete document.

Is there anyway to either allow these namespaces or to only consider this a warning and not a fatal error so that the parser will continue?

Thanks
Rich

p.s. URL of source page on request.

Comments

richH’s picture

Hi guys,

any help on this one?

Thanks
Rich

richH’s picture

ahem... any help anyone?
Thanks
Rich

twistor’s picture

Maybe try the XML parser?

summit’s picture

Hi, see http://drupal.org/project/feeds_xmlparser
This module is deprecated in favor of Feeds XPath Parser ..

I have exactly the same problem also with a 801 error. Does the xml need to have a specific header may be?

greetings, Martijn