I am trying to cross a XML by means of the XPath, but this this giving the
error me: 


Invalid XPath expression: 'formulario/pasos'. Caused by: null

The root of xml is form, and I have tried diverse variations and I do not
understand that it happens.  It wanted to know if somebody can help or a
manual me in Spanish, position qeu my English is not very good. 

The Code is :

        public void buscaPorXpath1(Document doc)throws DocumentException{
                List lista = doc.selectNodes("//formulario/pasos");
                Node nodo = doc.selectSingleNode ("formulario/pasos/paso");
                String nombre = nodo.valueOf( "@nombre" );
                System.out.println("DEBUG_1");
        }

It does not enter the ClassX.buscaPorXpath1 call (doc), leaves to catch.
Waiting for quick and an answer, thank you very much.

chucky 



All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to