解析KML文件抛出org.xml.sax.SAXParseException

时间:2013-07-20 07:05:46

标签: android saxparser

我搜索了链接,但仍然没有得到我收到此错误的原因:

07-20 12:02:59.140: W/System.err(6558): org.xml.sax.SAXParseException: expected: /meta read: noscript (position:END_TAG </noscript>@1:495 in java.io.InputStreamReader@41efde28) 
07-20 12:02:59.140: W/System.err(6558):     at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:146)
07-20 12:02:59.140: W/System.err(6558):     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
07-20 12:02:59.140: W/System.err(6558):     at com.twra.mapview.MyDrivingDirectionsActivity.DrawPath(MyDrivingDirectionsActivity.java:82)
07-20 12:02:59.140: W/System.err(6558):     at com.twra.mapview.MyDrivingDirectionsActivity.onCreate(MyDrivingDirectionsActivity.java:43)
07-20 12:02:59.140: W/System.err(6558):     at android.app.Activity.performCreate(Activity.java:4470)
07-20 12:02:59.140: W/System.err(6558):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1053)
07-20 12:02:59.150: W/System.err(6558):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1934)
07-20 12:02:59.150: W/System.err(6558):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1995)
07-20 12:02:59.150: W/System.err(6558):     at android.app.ActivityThread.access$600(ActivityThread.java:128)
07-20 12:02:59.150: W/System.err(6558):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161)
07-20 12:02:59.150: W/System.err(6558):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-20 12:02:59.150: W/System.err(6558):     at android.os.Looper.loop(Looper.java:137)
07-20 12:02:59.150: W/System.err(6558):     at android.app.ActivityThread.main(ActivityThread.java:4517)
07-20 12:02:59.150: W/System.err(6558):     at java.lang.reflect.Method.invokeNative(Native Method)
07-20 12:02:59.150: W/System.err(6558):     at java.lang.reflect.Method.invoke(Method.java:511)
07-20 12:02:59.150: W/System.err(6558):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
07-20 12:02:59.150: W/System.err(6558):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
07-20 12:02:59.150: W/System.err(6558):     at dalvik.system.NativeStart.main(Native Method)
07-20 12:02:59.180: I/Adreno200-EGLSUB(6558): <ConfigWindowMatch:2218>: Format RGBA_8888.

1 个答案:

答案 0 :(得分:0)

您尝试在此处解析的xml文档MyDrivingDirectionsActivity.java:82格式不正确。