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.
在调试我的 DW 脚本期间,当我调试 xmlStreamReader 时,我试图寻找 .hasNext() 这会给我 TRUE 但获取 .next() 将终止脚本,因此我无法从 .next() 点继续那。
我也遇到了同样的问题,我将 hasNext 作为 Number 变量。
问题在于 -> orderXMLReader.next() == XMLStreamConstants.START_ELEMENT
这里 orderXMLReader.next() 返回 String 值并与 Number 常量进行比较