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.
根据文档,如果已解析可忽略的空白,则会返回 SPACE 事件。
我提供了一个 DTD,因此 StAX 解析器应该知道哪些空白是可忽略的。但是,我仍然收到 CHRACTERS 类型的 XMLEvent(其中event.asCharacters().isIgnorableWhiteSoace()返回 true)。
event.asCharacters().isIgnorableWhiteSoace()
我的问题:如果不是这种情况,StAX 解析器何时返回 SPACE 类型的 XMLEvent?
我试图在两行中获取按钮文本,请参见小提琴:http: //jsfiddle.net/gaurav360/Yxqx2/
它在除Opera之外的所有浏览器中运行良好...
提前致谢。