Click here to Skip to main content
15,921,279 members
Home / Discussions / C#
   

C#

 
AnswerRe: identityHashCode Pin
Green Fuze18-Jul-08 2:47
Green Fuze18-Jul-08 2:47 
GeneralRe: identityHashCode Pin
DwR18-Jul-08 2:55
DwR18-Jul-08 2:55 
GeneralRe: identityHashCode Pin
Green Fuze21-Jul-08 12:39
Green Fuze21-Jul-08 12:39 
AnswerRe: identityHashCode Pin
Mike Nakis3-Jun-11 23:10
Mike Nakis3-Jun-11 23:10 
Questionhyper threading Pin
arkiboys17-Jul-08 2:45
arkiboys17-Jul-08 2:45 
AnswerRe: hyper threading Pin
leppie17-Jul-08 3:03
leppie17-Jul-08 3:03 
Question"&" string cant display in Lable control Pin
ASysSolvers17-Jul-08 2:42
ASysSolvers17-Jul-08 2:42 
AnswerRe: "&" string cant display in Lable control Pin
Gareth H17-Jul-08 2:48
Gareth H17-Jul-08 2:48 
GeneralRe: "&" string cant display in Lable control Pin
leppie17-Jul-08 3:04
leppie17-Jul-08 3:04 
AnswerRe: "&" string cant display in Lable control Pin
Guffa17-Jul-08 3:07
Guffa17-Jul-08 3:07 
GeneralRe: "&" string cant display in Lable control Pin
leppie17-Jul-08 3:08
leppie17-Jul-08 3:08 
AnswerRe: "&" string cant display in Lable control Pin
Nirandas17-Jul-08 3:23
Nirandas17-Jul-08 3:23 
GeneralRe: "&" string cant display in Lable control Pin
J$17-Jul-08 4:20
J$17-Jul-08 4:20 
GeneralRe: "&" string cant display in Lable control Pin
ASysSolvers17-Jul-08 6:57
ASysSolvers17-Jul-08 6:57 
QuestionHow to add an menu item to windows desktop menu Pin
Member 173968517-Jul-08 2:04
Member 173968517-Jul-08 2:04 
AnswerRe: How to add an menu item to windows desktop menu Pin
Firedragonweb17-Jul-08 5:33
Firedragonweb17-Jul-08 5:33 
Questionsaving xml [modified] Pin
arkiboys17-Jul-08 1:45
arkiboys17-Jul-08 1:45 
Hi,
In the project, the code can save data into the xml file.
Notice that one of the elements is <sql>
if the data to be saved is only one line for <sql> then it gets saved in a nice format as you see below.

i.e.
<check>
<id>33</id>
<property>Indexing service</property>
<type>service</type>
<enabled>True</enabled>
<note>This is a service</note>
<sql>cidaemon</sql>
</check>

BUT, if the data to be saved has multiple sql lines then the saved format is not nice and proper. It gets saved as below:

<check>
<id>33</id>
<property>Indexing service</property>
<type>service</type>
<enabled>True</enabled>
<note>This is a service</note>
<sql>cidaemon and some
other lines.notice there are more than one
lines here</sql>
</check>

Question:
How can I make sure the above xml is save in a nice format i.e:

<check>
<id>33</id>
<property>Indexing service</property>
<type>service</type>
<enabled>True</enabled>
<note>This is a service</note>
<sql>cidaemon and some
other lines.notice there are more than one
lines here
</sql>
</check>

modified on Thursday, July 17, 2008 7:56 AM

AnswerRe: saving xml Pin
leppie17-Jul-08 1:49
leppie17-Jul-08 1:49 
GeneralRe: saving xml Pin
arkiboys17-Jul-08 1:58
arkiboys17-Jul-08 1:58 
AnswerRe: saving xml Pin
leppie17-Jul-08 2:01
leppie17-Jul-08 2:01 
QuestionTime zones Pin
hadad17-Jul-08 1:32
hadad17-Jul-08 1:32 
AnswerRe: Time zones Pin
leppie17-Jul-08 1:57
leppie17-Jul-08 1:57 
AnswerRe: Time zones Pin
PIEBALDconsult17-Jul-08 5:03
mvePIEBALDconsult17-Jul-08 5:03 
Questionusb serial port Pin
samy10017-Jul-08 1:25
samy10017-Jul-08 1:25 
AnswerRe: usb serial port Pin
leppie17-Jul-08 1:54
leppie17-Jul-08 1:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.