This is a known issue (related) with cheerio. It is unable to create a correct tree out of XML with CDATA
in your case yet. I know this is a disappointing answer, it's WIP.
It is being worked on, meanwhile, you can remove CDATA
with a Regular Expression.
arrXmlDocs[i].replace(/<!\[CDATA\[([\s\S]*?)\]\]>(?=\s*<)/gi, "$1");
Here is a link to an example jsfiddle.
While this is not an ideal solution, it should suffice until they work this issue out.