app.config XML

  • Thread starter Thread starter David P. Donahue
  • Start date Start date
D

David P. Donahue

I'm trying to put some useful strings for my application into an
app.config file so I can edit them without having to re-compile, namely
my connection string and query strings.

However, when my application loads the file, it seems to be blowing up
at any point where the query strings have a < or a > character. Is
there something I need to do to escape these characters and/or other
special characters in the XML?


-David
 
David P. Donahue said:
I'm trying to put some useful strings for my application into an
app.config file so I can edit them without having to re-compile, namely
my connection string and query strings.

However, when my application loads the file, it seems to be blowing up
at any point where the query strings have a < or a > character. Is
there something I need to do to escape these characters and/or other
special characters in the XML?

This probably isn't the proper forum, but here you go.

&lt; < less than
&gt; > greater than
&amp; & ampersand
&apos; ' apostrophe
&quot; " quotation mark
 
This probably isn't the proper forum, but here you go.
&lt; < less than
&gt; > greater than
&amp; & ampersand
&apos; ' apostrophe
&quot; " quotation mark

Oh, so it's the same as in HTML? I guess I should have tried that :)
Thanks!
 
No, it's not the same as HTML. It's similar. In some cases, it's quite
different.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top