I am trying to insert the content of an html file into a xml request .
I am opening the html file this way :
page = open(html).read()
then inserting the content in the xml this way :
"<Description><![CDATA["+page+"]]</Description>"+\
This errors out this way :
XML Parse error.
XML Error Text: “; nested exception is:
org.xml.sax.SAXParseException: XML document structures must start and
end within the same entity.”
I’m assuming I have to do a bit more than just dumping the content of the html file into a CDATA tag ? or maybe do it in a different way ?
You forgot the closing
>for theCDATAelement: