MAC OSX上的XML文件错误(Minecraft)

时间:2018-01-21 15:39:19

标签: xml macos minecraft

我正在尝试为我在Minecraft 1.12.1中的单人游戏世界制作一个Tectonicus 2.25地图。因此我需要一个XML配置文件,但在尝试制作地图时,我在终端(MAC OSX)中收到此错误(请查看:https://github.com/tectonicus/tectonicus/wiki/Creating-a-Tectonicus-config-file

Parsing config from /Users/ralphvandenheuvel/Downloads
[Fatal Error] :1:1: Content is not allowed in prolog.
org.xml.sax.SAXParseException; systemId: file:/Users/ralphvandenheuvel/Downloads/; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
at tectonicus.configuration.XmlConfigurationParser.loadXml(Unknown Source)
at tectonicus.configuration.XmlConfigurationParser.parseConfiguration(Unknown Source)
at tectonicus.TectonicusApp.main(Unknown Source)
Exception in thread "main" java.lang.RuntimeException: Couldn't get root 
config node from /Users/ralphvandenheuvel/Downloads
at tectonicus.configuration.XmlConfigurationParser.parseConfiguration(Unknown Source)
at tectonicus.TectonicusApp.main(Unknown Source)"

我的文件是使用Texteditor(标准MAC OSX)

制作的
<?xml version="1.0"?>
<tectonicus version="2">
    <config mode="cmd" outputDir="/Users/ralphvandenheuvel/Downloads"/>
    <map name="GLACIER" worldDir="/Users/ralphvandenheuvel/Library/Application Support/minecraft/saves/GLACIER/level">
        <layer name="Day" lighting="day"/>
    </map>
</tectonicus>

有什么问题?另外我不知道我的xml是不是1.0 ???对于回答,我不是最好的XML编程,所以请保持答案简单:)

编辑:我试图找到一个BOM,但没有任何迹象(Hex Friend,Emacs;仍然没有迹象)。我不知道是否还有其他东西使代码“假”。

0 个答案:

没有答案