Hi all,

i need to retrieve element from an xml file; So for now I use XMLStreamReader in the following way:

 

while(reader.hasNext()){

                reader.next();

                if(reader.getEventType() == XMLStreamReader.START_ELEMENT){

 

 

 

I compare every node with the value I'm looking for and if i find what i need i'll store it in a variable;

 

I'm asking if is there a way to use xpath expression and not go through every xml node?

thanks a lot

Francesco

FacebookTwitterLinkedin
Pin It
Joomla Tutorials for Beginners