Revision 21966 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/parser/v21/features/MetadataBinding.java
MetadataBinding.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; |
... | ... | |
94 | 94 |
while (!endFeature){ |
95 | 95 |
switch(currentTag){ |
96 | 96 |
case IXmlStreamReader.START_ELEMENT: |
97 |
if (!(CompareUtils.compareWithNamespace(tag,KmlTags.METADATA))){ |
|
97 |
if (!(CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.METADATA))){
|
|
98 | 98 |
Object element = handler.getProfile().getElementBinding().parse(parser, handler, feature, null); |
99 | 99 |
handler.getContentHandler().addElementToFeature(element, feature); |
100 | 100 |
} |
101 | 101 |
break; |
102 | 102 |
case IXmlStreamReader.END_ELEMENT: |
103 |
if (CompareUtils.compareWithNamespace(tag,KmlTags.METADATA)){ |
|
103 |
if (CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.METADATA)){
|
|
104 | 104 |
endFeature = true; |
105 | 105 |
} |
106 | 106 |
break; |
Also available in: Unified diff