阅读背景:

使用Sax Parser,Java处理XML中的空标记

来源:互联网 

I'm Using Sax parser to handle a pre written xml file....i have no way of changing the xml as it is held by another application but need to parse data from it. The Xml file contains a Tag < ERROR_TEXT/> which is empty when no error is occurred. as a result the parser takes the next character after the tag close which is "\n". i have tried result.replaceAll("\n", ""); and result.replaceAll("\n", "");I'm Using Sax parser to handle a pre written xm




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: