Hi All,
I have a XMLStreamReader setup with com.ctc.wstx.stax.WstxInputFactory
the problematic XML I have has this form
When I am at the parent event, and try to get "TEXT" using the reader.getElementText()Code:<parent> TEXT <child1 value="A VALUE" /> <child2 value="SOME VALUE" /> </parent>
I get an error saying that there is no text but a Start event instead.
Are there any ways of extracting TEXT value? without having to go to the next event which is child1?




Reply With Quote