Revision 8865 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/writers/gml/GMLFileCreator.java

View differences:

GMLFileCreator.java
13 13
import com.iver.cit.gvsig.fmap.core.IFeature;
14 14
import com.iver.cit.gvsig.fmap.drivers.FieldDescription;
15 15
import com.iver.cit.gvsig.fmap.edition.EditionException;
16
import com.iver.utiles.StringUtilities;
16 17
import com.vividsolutions.jts.geom.Geometry;
17 18

  
18 19
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
......
59 60
 *
60 61
 * $Id$
61 62
 * $Log$
62
 * Revision 1.2  2006-08-10 12:03:43  jorpiell
63
 * Revision 1.2.4.1  2006-11-20 08:11:44  jorpiell
64
 * Se ha sustituido el car?cter & por &. El parser de XML lo requiere
65
 *
66
 * Revision 1.2  2006/08/10 12:03:43  jorpiell
63 67
 * Se usa el nuevo driver de GML de remoteServices
64 68
 *
65 69
 * Revision 1.1  2006/07/19 12:29:39  jorpiell
......
111 115
			
112 116
			for (int i=0 ; i<attributes.length ; i++){
113 117
				String attributeName = this.attributes[i].getFieldName();
114
				String attibuteValue = attributes[i].toString();
118
				String attibuteValue = StringUtilities.replace(attributes[i].toString(),"&","&amp;");
115 119
				writer.write(getAttribute(attributeName,attibuteValue));
116 120
			}
117 121
			

Also available in: Unified diff