com.badlogic.gdx.utils.SerializationException: Error parsing XML on line 1 near
出錯提示:
com.badlogic.gdx.utils.SerializationException: Error parsing XML on line 1 near: puzzle/puz.xml
錯誤程式碼如下:
XmlReader xmlReader = new XmlReader();
m_element = xmlReader.parse("puzzle/puz.xml");
使用檔名的方式,似乎支援的不是很好。
解決方案如下:使用檔案控制程式碼方式,而不使用檔名方式。
m_element = xmlReader.parse(Gdx.files.internal("puzzle/puz.xml"));
相關文章
- Solaris awk: syntax error near line 1 awk: bailing out near line 1ErrorAI
- Error parsing XML: An invalid XML character (Unicode:0x1f) was foundErrorXMLUnicode
- Springboot Error parsing Mapper XMLSpring BootErrorAPPXML
- Parsing an XML Document with XPathXML
- syntax error near unexpected token `Error
- Binary XML file line #2: Error inflatingXMLError
- npm ERR! Unexpected token in JSON at position 0 while parsing near ’ npm ERR! <!–////////NPMJSONWhile
- npm install “Unexpected end of JSON input while parsing near”問題NPMJSONWhile
- Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection alreadyErrorAPPXMLJavaException
- npm install 出現 npm ERR! Unexpected end of JSON input while parsing near '...ostNPMJSONWhile
- syntax error near unexpected token `問題的解決Error
- 解決一個小坑:error on line 1 at column 1: Document is emptyError
- shell 指令碼報錯^M: syntax error near unexpected token指令碼Error
- Error parsing HTTP request header--400 bad requestErrorHTTPHeader
- JAXP 再述??Sun 的 Java API for XML Parsing,1.1 版(轉)JavaAPIXML
- FatalThrowableError in index.php line 554:Type error: Argument 1 passedErrorIndexPHP
- 解決 eslint 的 Parsing error: Unexpected token 錯誤EsLintError
- 急!!Error Parsing EJB file: Finder found in DD with no matching method.Error
- [Near Protocol] Near開發Demo淺析-Gamble Game Near(一):智慧合約ProtocolGAM
- 360 Atals:Cause: java.sql.SQLException: Proxy Warning - near “status“: syntax errorJavaSQLExceptionError
- org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; 前言中不允許有內容。XMLException
- XML DOM Parse Error 物件概述XMLError物件
- XML ERROR 在咚懍斜XMLError
- Error:map.xml could only be replicated to 0 nodes instead of minReplication (=1)ErrorXML
- from v * ERROR at line 1: ORA-00942: table or view does not existErrorView
- CentOS7使用exp/imp時報錯:bash: syntax error near unexpected token `(CentOSError
- PARSING_USER_ID,PARSING_SCHEMA_ID,PARSING_SCHEMA_NAME in V$SQLSQL
- Linux 5中出現的-bash: syntax error near unexpected token `('錯誤LinuxError
- android自定義View “android.view.InflateException: Binary XML file line # : Error inflating class"AndroidViewExceptionXMLError
- Codeforces Round 959 sponsored by NEAR (Div. 1 + Div. 2)
- XML進階:Level 1 – XML簡介XML
- python匯入資料錯誤:ParserError: Error tokenizing data. C error: Expected 1 fields in line 3, saw 2PythonError
- 【C進階】#error和#line使用分析Error
- line 10:syntax error: unexpected end of fileError
- SQL Parsing Flow DiagramSQL
- XML入門指南(1)XML簡介(轉)XML
- Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause:...ApacheBATUIExceptionErrorSQLAPP
- parsing html in asp.netHTMLASP.NET