在我的XML文件中,在一些文本节点中有
,即回车符。如何识别包含此类字符的文本?我使用的是纯java DOM接口。
发布于 2017-08-11 23:51:54
明白了。它似乎可以与'\r'相媲美。因此,例如,
String text = //xml text that contains 
for (int i = 0; i < text.length(); i++)
if (text.charAt(i) == '\r')
// code...https://stackoverflow.com/questions/45638696
复制相似问题