custom sections in .config files
-
I have a Windows Forms application that requires to read an XML, i know you can put something like but in the case the value is XML what can I do? i tried to put the xml inside the value but it didnt work i had to do it this way that worked, but it would be too hard for the user to edit and not make mistakes when the XML grows, so i was wondering if there is any way I could just put my xml tags somewhere in the .config file where it doesn't make the application crash something like this blah I basically want to avoid that some settings are stored in the .config file and others in a different XML file Thanks in advance
-
I have a Windows Forms application that requires to read an XML, i know you can put something like but in the case the value is XML what can I do? i tried to put the xml inside the value but it didnt work i had to do it this way that worked, but it would be too hard for the user to edit and not make mistakes when the XML grows, so i was wondering if there is any way I could just put my xml tags somewhere in the .config file where it doesn't make the application crash something like this blah I basically want to avoid that some settings are stored in the .config file and others in a different XML file Thanks in advance
I have a Windows Forms application that requires to read an XML, i know you can put something like < add key="serverPath" value="http://localhost/something.aspx" / > but in the case the value is XML what can I do? i tried to put the xml inside the value but it didnt work < add key="test" value="< hi >" / > i had to do it this way < add key="test" value="<hi>" / > that worked, but it would be too hard for the user to edit and not make mistakes when the XML grows, so i was wondering if there is any way I could just put my xml tags somewhere in the .config file where it doesn't make the application crash something like this < configuration > < appSettings > < add key="serverPath" value="http://localhost" / > < /appSettings > < myTag > < moreTags > blah < /moreTags > < /myTag > < /configuration > I basically want to avoid that some settings are stored in the .config file and others in a different XML file Thanks in advance
-
I have a Windows Forms application that requires to read an XML, i know you can put something like < add key="serverPath" value="http://localhost/something.aspx" / > but in the case the value is XML what can I do? i tried to put the xml inside the value but it didnt work < add key="test" value="< hi >" / > i had to do it this way < add key="test" value="<hi>" / > that worked, but it would be too hard for the user to edit and not make mistakes when the XML grows, so i was wondering if there is any way I could just put my xml tags somewhere in the .config file where it doesn't make the application crash something like this < configuration > < appSettings > < add key="serverPath" value="http://localhost" / > < /appSettings > < myTag > < moreTags > blah < /moreTags > < /myTag > < /configuration > I basically want to avoid that some settings are stored in the .config file and others in a different XML file Thanks in advance
-
this is getting complicated to post when i wrote "i had to do it this way" and the sentence looks identical i wrote & lt; hi & gt; the question at the end is can i add my own tags to the .config file? Thanks
-
I have a Windows Forms application that requires to read an XML, i know you can put something like < add key="serverPath" value="http://localhost/something.aspx" / > but in the case the value is XML what can I do? i tried to put the xml inside the value but it didnt work < add key="test" value="< hi >" / > i had to do it this way < add key="test" value="<hi>" / > that worked, but it would be too hard for the user to edit and not make mistakes when the XML grows, so i was wondering if there is any way I could just put my xml tags somewhere in the .config file where it doesn't make the application crash something like this < configuration > < appSettings > < add key="serverPath" value="http://localhost" / > < /appSettings > < myTag > < moreTags > blah < /moreTags > < /myTag > < /configuration > I basically want to avoid that some settings are stored in the .config file and others in a different XML file Thanks in advance