How to remove non-ascii characters from XML data

后端 未结 1 477
野趣味
野趣味 2021-01-25 23:00

I have some XML data that is in the following format. My application is supposed to read this using a XMLReader and do some processing to it . However, for that to happen, I nee

相关标签:
1条回答
  • 2021-01-25 23:21

    I would investigate as to why these characters are there in the first place. It looks like some encoding problem somewhere between the original XMLs and your file.

    Anyway, when you read a line, just drop all the characters before the <XML>.

    0 讨论(0)
提交回复
热议问题