what's the equivalent method of XMLStreamReader in java. I want to use it in the following case. case XMLStreamConstants.START_ELEMENT. 开发者_如何转开发
i think what you are looking for is getElementText()
http://download.oracle.com/javase/6/docs/api/javax/xml/stream/XMLStreamReader.html#getElementText()
this was given as returning all XML underneath the current element as opposed to a feature request for innerText() in a site i came across, however, i can't seem to track down the link.
精彩评论