Name cannot begin with the ' ' character

后端 未结 9 1323
抹茶落季
抹茶落季 2021-01-01 08:57

I\'m parsing some XML in C#. I\'m getting it from a database, and so converting it to a MemoryStream before reading it with an XmlTextReader. The problem is that I get this

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-01 09:34

    Another common source of this error is when the XmlReader attempts to read your scripts as xml. That's a good reason to start commenting out scripts after the script tags. They will still run:

    
    

提交回复
热议问题