Hi all, I'm using dom4j (I was using the 1.3, and today I've also downloaded the daily build, but my problem persist) but I've some little problems executing XPath.
In fact if I load from a file this xml : <?xml version="1.0" encoding="UTF-8"?> <featureCollection xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:gml="http://www.opengis.net/gml" xmlns="http://dr0id/gml"> <gml:description>File GML 3.0</gml:description> <gml:boundedBy> <gml:Box srsName="WGS8:4LL"> <gml:coordinates>35.493008,6.626593 47.090206,18.520209</gml:coordinates> </gml:Box> </gml:boundedBy> <provincia gml:id="provincia.1"> <gml:boundedBy> <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"> <gml:coordinates>0.0,0.0 50.0,50.0</gml:coordinates> </gml:Box> </gml:boundedBy> <SUBSET>AGRGN</SUBSET> <ID_REGIONE>03919</ID_REGIONE> <ID_PROVINCIA>039084</ID_PROVINCIA> <ID_NAME>H05390000055209</ID_NAME> <REGIONE>SICILIA</REGIONE> <PROVINCIA>AGRIGENTO</PROVINCIA> <SIGLA-PROVINCIA>AG</SIGLA-PROVINCIA> <CODICE-ISTAT-PRO>084</CODICE-ISTAT-PRO> <POPCL>0</POPCL> <AREA>3054473881.500000</AREA> <PERIMETRO>538501.650000</PERIMETRO> <DATA-CREAZIONE>2001-01-01T00:00:00</DATA-CREAZIONE> <FONTE>TELEATLAS</FONTE> <AUTORE>RFI</AUTORE> <STATO>VALIDATO</STATO> <ID>1</ID> </provincia> </featureCollection> and I try : List = document.selectNodes("//provincia"); I obtain an empty list. I tryed also with the expression "//provincia/[ID_PROVINCIA = '039084']" but the result did not change. I've downloaded also the XPE and I've noted that it suffer the same problem. With this program I've selected the element "provincia" and it suggested me this expression : "/featureCollection/provincia", so I've tryed it, and I've got an empty response!! If I remove all the namespaces specification it works fine, specially using "//provincia" it select all the "provincia" element found in the document, as I can expect. Anyone can tell me if it is a bug, or how can I correct this? Thanks. Paolo ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user