[英]Read data as it is from the xml using apache digester
I am using Java digester for reading XML. 我正在使用Java摘要读取XML。 My XML element has some HTML contents like: 我的XML元素具有一些HTML内容,例如:
<title> Understand the following as special cases:<br/>a. Bundle of ten ones — called a "ten."<br/>b. The numbers from 11 to 19 are composed of a ten and one, two, three, four, five, six, seven, eight, or nine ones.<br/>c. Recording the results of comparisons with the symbols >, =, and <.</title>
After parsing it is changed like below. 解析后,如下所示进行更改。
Understand the following as special cases: <br/>a. Bundle of ten ones — called a "ten." <br/>b. The numbers from 11 to 19 are composed of a ten and one, two, three, four, five, six, seven, eight, or nine ones.<br/>c. Recording the results of comparisons with the symbols >, =, and <.
I want to read or parse as it is. 我想按原样阅读或解析。
That's not properly formed XML. 格式不正确的XML。 For example: 例如:
Recording the results of comparisons with the symbols >, =, and < 用符号>,=和<记录比较结果
should use the XML entities <
应该使用XML实体<
and >
和>
So an XML parser will fail against this. 因此,XML解析器将对此失败。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.