Unicode(0xb) error while parsing an XML file using Stax

后端 未结 3 461
半阙折子戏
半阙折子戏 2021-01-18 20:38

While parsing an XML file Stax produces an error:

Unicode(0xb) error-An invalid XML character (Unicode: 0xb) was found in the element content of the d

3条回答
  •  攒了一身酷
    2021-01-18 20:45

    According to the XML W3C Recommendation 0xb is not allowed in an XML file:

    Character Range [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] /* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */

    So strictly speaking your input file is not an XML file.

提交回复
热议问题