In this post, we will see how to resolve Parsing XML document that includes another XML document embedded in a CDATA section
Question:
I’m trying out web scraping for the first time usinglxml.etree
. The website I want to scrape has an XML feed, which I can read fine, except for a part of its XML which is embedded within a CDATA section:This is the message:
The solution is to ask the source of the feed to fix the xml so it’s well formed.
If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review