开发者

XmlDocument, and special ISO Latin characters

开发者 https://www.devze.com 2022-12-13 07:17 出处:网络
I\'m trying to load up xml into an XmlDocument, but it doesn\'t recognize the encoded \'&eacute\' and throws an error \'An error occurred while parsing Entity Name\'.Now I can add a custom entity

I'm trying to load up xml into an XmlDocument, but it doesn't recognize the encoded '&eacute' and throws an error 'An error occurred while parsing Entity Name'. Now I can add a custom entity set in a DTD of my xml, so the XmlDocument loads properly. But what I'm hoping is that I can reference a url that has a common set of these ISO Latin encoded characters. Is this possible, or do I need to inject a cu开发者_开发百科stom list of DTD sets?


ISO/IEC 8859-1?

EDIT: To be more complete: there are no default URI to entiry ISO 8859 charset, so you'll need to create a custom DTD file to load that character entities.


Maybe it requires the closing ; ?

é

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号