1
如下我已经配置了一个XML目录在Eclipse无效的开始标记的plist:错误:使用ADT插件
Entry element: Public
Location: LindbergCorp.MyPrayers/PropertyList.dtd
URI: platform:/resource/LindbergCorp.MyPrayers/PropertyList.dtd
Key type: Public ID
Key: -//Apple//DTD PLIST 1.0//EN
以下是在资源的xml文件\值文件夹(位于这里,因为这将有条目在数值文件夹中):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "the http address is here too">
<plist version="1.0">
<dict>
<key>1-1</key>
<array>
<string>Cross Style</string>
<string>setCrossStyleCell::</string>
<string>updateCrossStyle:</string>
</array>
</dict>
</plist>
当我在eclipse中编辑这个XML文件时,它给出了“无效的开始标记”消息。
如果我保存xml文件,标记消失,直到我清理项目。
有什么额外的我必须做的ADT插件,使其识别使用不同的方案的XML文件?
谢谢 - Dan'l
我找到了解决方案。 res \ values目录中的xml文件必须具有作为根元素。其他xml文件需要位于res \ xml-目录中。它有助于阅读文档:) –
那么到底什么是你把plist文件放入的文件夹的名称? – Jonny
未加工。短而甜蜜的答案。我希望它有帮助。对不起,当我找到真正的答案时,我应该更新我的解决方案。该文档指出使用res \ xml-。在这种情况下,我使用res \ raw- (即res \ raw或res \ raw-de(德语))。 –