Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3386 มุมมอง

'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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 23
29034
0
มี.ค. 18
3303
0
เม.ย. 17
2502
1
มี.ค. 25
1256
0
พ.ย. 24
1461