Forum Moderators: open

Message Too Old, No Replies

handling invalid XML characters in .Net

simple question,

         

tomasz

3:20 pm on Nov 10, 2004 (gmt 0)

10+ Year Member



Hello,

I have an app which is posting to external application using XML post. Everything is working fine except from time to time I run across problem with some characters like "&" and get XML not properly formated.

Is there function in .Net I can use to format string before posting?

TheNige

7:56 pm on Nov 10, 2004 (gmt 0)

10+ Year Member



If you are passing text fields use can use a CDATA node to pass them in. Using CDATA will allow for any type of text with special characters to be passed. This is part of basic XML.