تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3366 أدوات العرض

'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
أغسطس 23
29026
0
مارس 18
3271
0
أبريل 17
2487
1
مارس 25
1238
0
نوفمبر 24
1452