错误:解析XML时出错:格式错误(无效令牌)

时间:2013-01-22 07:59:05

标签: xml parsing resources

抽拉/ icondrawable /图标

<?xml version="1.0" encoding="utf-8"?>
<resources
    <string name="app_name">MerjProject</string>
    <string name="hello">Hello World!</string>
    <string name="menu_settings">Settings</string>
    <string name="ref">this is a reference</string>
</resources>

我哪里出错?

1 个答案:

答案 0 :(得分:1)

您的XML文件在第二行中缺少>

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">MerjProject</string>
    <string name="hello">Hello World!</string>
    <string name="menu_settings">Settings</string>
    <string name="ref">this is a reference</string>
</resources>