Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试解析包含一些特殊字符的 xml 文件,if (($a > 7))我正在使用 StringBuffer 来读取这些字符,但它没有读取整个字符串。之后的所有角色>都被砍掉了。它返回给我的只是if(($a. 请给我建议。谢谢
if (($a > 7))
>
if(($a
使用 SAX 解析 XML 时,可以在多个方法调用中获取元素的文本。您必须在所有呼叫中累积文本,直到您endElement接到呼叫。
endElement