.net - Can you get a Char 0x05 into an XDocument that will then throw on XDocument.ToString? -


i have xdocument throwing invalid character (0x05) exception on tostring.

to locate allowing 0x05 char in in xdocument api can let in 0x05 character without exception @ point, thrown @ tostring?

specifically, far recall, use new linq xml api, except use xmlserialization through extension method return xelement.

just show worthy question before found simple answer: xelement:parse does throw when 0x05 character included.

i've found setting .value of xelement not check invalid charaters :-(

element.value = "test" & chr(5) & "5" 

the above doesn't throw, until call xdocument.tostring on containing xml.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -