Revision 12418 trunk/libraries/libGPE-GML/src/org/gvsig/gpe/gml/GPEGmlParser.java
GPEGmlParser.java | ||
---|---|---|
13 | 13 |
import org.xmlpull.v1.XmlPullParser; |
14 | 14 |
import org.xmlpull.v1.XmlPullParserException; |
15 | 15 |
|
16 |
import com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration; |
|
17 |
|
|
16 | 18 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
17 | 19 |
* |
18 | 20 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
... | ... | |
57 | 59 |
* |
58 | 60 |
* $Id$ |
59 | 61 |
* $Log$ |
60 |
* Revision 1.14 2007-06-07 14:53:30 jorpiell |
|
62 |
* Revision 1.15 2007-06-29 12:19:34 jorpiell |
|
63 |
* The schema validation is made independently of the concrete writer |
|
64 |
* |
|
65 |
* Revision 1.14 2007/06/07 14:53:30 jorpiell |
|
61 | 66 |
* Add the schema support |
62 | 67 |
* |
63 | 68 |
* Revision 1.13 2007/05/24 07:29:47 csanchez |
... | ... | |
165 | 170 |
//First, it gets the file parser. |
166 | 171 |
fileParser = getParser(); |
167 | 172 |
try { |
173 |
//If the file is empty |
|
174 |
if (getParser().getEventType() == XmlPullParser.END_DOCUMENT){ |
|
175 |
return; |
|
176 |
} |
|
168 | 177 |
//Initialize the layer |
169 | 178 |
//recursiveParser(); |
170 | 179 |
FeatureCollectionBinding.parse(getParser(), this); |
Also available in: Unified diff