Revision 37960 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/parser/v21/features/MetadataBinding.java
MetadataBinding.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import javax.xml.namespace.QName; |
6 | 6 |
|
7 |
import org.gvsig.gpe.kml.parser.GPEDeafultKmlParser;
|
|
7 |
import org.gvsig.gpe.kml.parser.GPEDefaultKmlParser;
|
|
8 | 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; |
... | ... | |
84 | 84 |
* @throws IOException |
85 | 85 |
* @throws XmlStreamException |
86 | 86 |
*/ |
87 |
public static void parse(IXmlStreamReader parser,GPEDeafultKmlParser handler, Object feature) throws XmlStreamException, IOException{
|
|
87 |
public static void parse(IXmlStreamReader parser,GPEDefaultKmlParser handler, Object feature) throws XmlStreamException, IOException{
|
|
88 | 88 |
boolean endFeature = false; |
89 | 89 |
int currentTag; |
90 | 90 |
|
... | ... | |
94 | 94 |
while (!endFeature){ |
95 | 95 |
switch(currentTag){ |
96 | 96 |
case IXmlStreamReader.START_ELEMENT: |
97 |
if (!(CompareUtils.compareWithNamespace(tag,Kml2_1_Tags.METADATA))){ |
|
97 |
if (!(CompareUtils.compareWithOutNamespace(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,Kml2_1_Tags.METADATA)){ |
|
103 |
if (CompareUtils.compareWithOutNamespace(tag,Kml2_1_Tags.METADATA)){
|
|
104 | 104 |
endFeature = true; |
105 | 105 |
} |
106 | 106 |
break; |
Also available in: Unified diff