Hi and thanks for the possible answer OK, when I use the pgsql2shp I create a new shape generated by a previous query inside database...GREAT!!!, but the question is: How I can convert this shapefile in a XML code for insertion in another code quickly, somebody knows the trick??? regards