I\'m using BeautifulSoup to read, modify, and write an XML file. I\'m having trouble with CDATA sections being stripped out. Here\'s a simplified example.
The culp
In my case if I use
soup = BeautifulSoup( xmlfile, "lxml-xml" )
then cdata is preserved and accesible.