Tectonicus 2.25的XML文件错误 [英] XML file error with Tectonicus 2.25

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

问题描述

我正在尝试为我的单人游戏世界制作Tectonicus地图.因此,我需要一个XML配置文件,但是在尝试制作地图时,在终端机(MAC OSX)中收到此错误:

I'm trying to make a Tectonicus map for my singleplayer world. Therefore I need a XML config file, but when trying to make the map I get this error in Terminal (MAC OSX):

"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)"

我的文件在Microsoft Word(OSX,2016)中看起来像这样:

My file looks like this in Microsoft Word (OSX, 2016):

<?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编程方面的佼佼者,所以请保持答案简单:)

What is the problem? Also I do not know if my xml is 1.0??? For answering, I'm not the best in XML programming, so please, keep the answer simple :)

我试图找到一个BOM,但是没有任何迹象(十六进制朋友,Emacs;仍然没有迹象).我不知道是否还有其他东西可以使代码为"false".

I've tried to locate a BOM, but there is no sign of it (Hex Friend, Emacs; still no sign). I do not know if there could be something else making the code 'false'.

我用Emacs重建了XML,并检查了不存在的BOM表.

I remade the XML with Emacs, and checked for BOM's, which were not there.

推荐答案

我相信您的问题是您正在使用MS Word来制作XML(MS Word以不兼容的格式保存文件)... XML,但使用诸如TextEdit之类的简单文本编辑器...

I believe that your problem is that you are using MS Word to make your XML (MS Word save the file in a incompatible format) ... Make the same XML but using Simple text editor like TextEdit ...

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

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