1
Transformer(變換方法)是否對輸入源的大小有限制?javax.xml.transform.Transformer輸入源大小限制
我試圖改變一個相當長(18M),XML,我得到一個奇怪的錯誤說
"The element type "HR" must be terminated by the matching end-tag "</HR>"."
但在輸入源中沒有這樣的元素...
我得到該是這樣的方式:
HttpResponse hrep = hclient.execute(get);
InputStream istr = hrep.getEntity().getContent();
Source xmlSource = new StreamSource(istr);
...
如果我「砍掉」的輸入源,比它的工作原理...
或者我錯過了什麼?
「HR」標籤強烈建議html輸入,_not_ xml(儘管它可以是xhtml)。 – jtahlborn 2012-03-30 16:59:12
XML是http請求的結果,並且在將此響應保存在文件中後,我注意到這並不是我的預期。事實上,這是一個505錯誤(並且它沒有正確組成......)。因此上面的錯誤信息。 – Francesco 2012-04-12 07:42:46