简体   繁体   中英

I am having an Xml parse Exception when i am downloading a file in pdf format

When ever i try to download the file it shows that its downloading but shows that 0 bytes is downloaded. When i checked the log it showed the following :-

2015-09-03 05:04:37,503 [http-nio-8463-exec-4] ERROR 
document.XhtmlDocumentServi ce - caught xml parse exception for xhtml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
<html>
<head>

This is happening in some systems ,while in some system the downloading process is working file.

Can i add something to the html file i created so that this is resolved?

I have tired adding a defaultCodec="html" . Also is it because of the javascript ive used in the file?

NOte: Actually i am writing an html file , that has to be downloaded in the pdf format.

我弄清楚了真正的问题是什么,在提取数据时,我在html文件中写入的“&”被视为普通的html字符,但是如果从数据库中提取“&”,则会显示上述错误。解析器将被调用的&当作jvascript,因此引发了异常。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM