コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3404 ビュー

'm using odoo10 to develop my module. and while working on xml file, i got this Error, and don't know where the error comes from :

XMLSyntaxError: Char 0x0 out of allowed range, line 5, column 57

Does anyone has a clue?

アバター
破棄
著作者 最善の回答

Thanks for the effort, i just deleted the Xml file i was working on and recreated and that worked perfectly.
so probably it was coding file problem.


アバター
破棄
最善の回答

Hello Jihane,
0x0 (aka NUL) is not an allowed character in XML(see here: https://www.w3.org/TR/xml/#charsets)


[2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

Therefore your data is not XML, and any conformant XML processor must report an error such as the one you received.


You must repair the data by removing any illegal characters by treating it as text, not XML, manually or automatically before using it with any XML libraries.

アバター
破棄
関連投稿 返信 ビュー 活動
1
8月 23
29060
0
3月 18
3330
0
4月 17
2521
1
3月 25
1287
0
11月 24
1480