Revision 21966 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/parser/v21/features/DocumentBinding.java

View differences:

DocumentBinding.java
5 5
import javax.xml.namespace.QName;
6 6

  
7 7
import org.gvsig.gpe.kml.parser.GPEDeafultKmlParser;
8
import org.gvsig.gpe.kml.utils.KmlTags;
8
import org.gvsig.gpe.kml.utils.Kml2_1_Tags;
9 9
import org.gvsig.gpe.xml.stream.IXmlStreamReader;
10 10
import org.gvsig.gpe.xml.stream.XmlStreamException;
11 11
import org.gvsig.gpe.xml.utils.CompareUtils;
......
127 127
		while (!endFeature){
128 128
			switch(currentTag){
129 129
			case IXmlStreamReader.START_ELEMENT:
130
				if (CompareUtils.compareWithNamespace(tag,KmlTags.OPEN)){
130
				if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.OPEN)){
131 131
					parser.next();
132 132
					String open = parser.getText();						
133
				}else if (CompareUtils.compareWithNamespace(tag,KmlTags.NAME)){
133
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.NAME)){
134 134
					parser.next();
135 135
					handler.getContentHandler().addNameToLayer(parser.getText(),layer);
136
				}if (CompareUtils.compareWithNamespace(tag,KmlTags.DESCRIPTION)){
136
				}if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.DESCRIPTION)){
137 137
					parser.next();
138 138
					handler.getContentHandler().addDescriptionToLayer(parser.getText(),layer);
139
				}else if (CompareUtils.compareWithNamespace(tag,KmlTags.STYLE)){
139
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.STYLE)){
140 140
					StyleBinding.parse(parser, handler);
141
				}else if (CompareUtils.compareWithNamespace(tag,KmlTags.FOLDER)){
141
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.FOLDER)){
142 142
					handler.getProfile().getFolderBinding().parse(parser, handler, layer);
143
				}else if (CompareUtils.compareWithNamespace(tag,KmlTags.PLACEMARK)){
143
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.PLACEMARK)){
144 144
					Object feature = PlaceMarketBinding.parse(parser, handler);
145 145
					handler.getContentHandler().addFeatureToLayer(feature, layer);
146
				}else if (CompareUtils.compareWithNamespace(tag,KmlTags.REGION)){
146
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.REGION)){
147 147
					Object bbox = handler.getProfile().getRegionBinding().parse(parser, handler);
148 148
					handler.getContentHandler().addBboxToLayer(bbox, layer);
149
				}else if (CompareUtils.compareWithNamespace(tag,KmlTags.LOOKAT)){
149
				}else if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.LOOKAT)){
150 150
					 handler.getProfile().getLookAtBinding().parse(parser, handler);
151 151
				}
152 152
				 break;
153 153
			case IXmlStreamReader.END_ELEMENT:
154
				if (CompareUtils.compareWithNamespace(tag,KmlTags.DOCUMENT)){
154
				if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.DOCUMENT)){
155 155
					endFeature = true;
156 156
					handler.getContentHandler().endLayer(layer);
157 157
				}

Also available in: Unified diff