无法找到在XML文件中的错误 [英] Unable to find errors in XML file

查看:229
本文介绍了无法找到在XML文件中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法找到一个XML文件中的错误这是显示在每个风格名称标记错误。

I am unable to find errors in an XML file which is showing errors at every style name tag.


<style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
    <item name="background">@drawable/nav_bar</item>
    <item name="android:background">@drawable/nav_bar</item>
    <item name="android:cacheColorHint">@drawable/nav_bar</item>
</style>

<style name="Widget.Styled.TabView" parent="Widget.Sherlock.ActionBar.TabView">
    <item name="android:background">@drawable/tab_indicator_customize</item>
</style>

<style name="Widget.Styled.TabBar" parent="Widget.Sherlock.Light.ActionBar.TabBar">
    <item name="background">@color/space_menu</item>
    <item name="android:background">@color/space_menu</item>
    <item name="android:cacheColorHint">@color/space_menu</item>
</style>

<style name="Sherlock.__Widget.Holo.Spinner" parent="Widget">
    <item name="android:dropDownSelector">@drawable/abs__list_selector_holo_dark</item>
    <item name="android:popupBackground">@drawable/box_element</item>
    <item name="android:gravity">left|center_vertical</item>
    <item name="android:spinnerMode">dropdown</item>
    <item name="android:clickable">true</item>
    <item name="android:width">200dp</item>
</style>

推荐答案

假设这是你的完整的XML,你缺少根节点

Assuming this is your complete xml, you are missing the root node

<resources>
...
</resources>

文档

必需。这必须是根节点。

Required. This must be the root node.

如果您有这方面请邮寄完整的XML,并告诉我们错误讯息是什么,我会删除或编辑。

If you have this please post complete xml and tell us what the error messsage is and I will delete or edit.

这篇关于无法找到在XML文件中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆