简体   繁体   English

在xml中获取解析错误

[英]Getting parsing error in xml

In my xml file i'm getting "error: Error parsing XML: not well-formed (invalid token)". 在我的xml文件中,我收到“错误:解析XML错误:格式不正确(无效令牌)”。 Is there any fixes that can be done for this? 有没有可以解决的办法?

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:showDividers="none" 
    android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen>

<WebView android:id="@+id/webview1"

    android:layout_width="wrap_content"
    android:layout_height="wrap_content" 
    />

</LinearLayout>

您在第一个标签的末尾缺少"

android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"

您错过了“

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:showDividers="none"
    android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >

    <WebView
        android:id="@+id/webview1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
</LinearLayout>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM