Hello All,
I am facing a awkward behavior in C# and I really would appreciate your help.
I have a XML file 1 (Input file) and copying some nodes to another Xml file so after copied the .0 is lost
for eg: if I have value (innertext) 1.0 then after copied it changed to 1 (I know like 1.0 and 1 are same but I need that .0 too
Xml input:
output is
and if I have 0.25 then its fine the issue is only when <number>.0.
I am facing a awkward behavior in C# and I really would appreciate your help.
I have a XML file 1 (Input file) and copying some nodes to another Xml file so after copied the .0 is lost
for eg: if I have value (innertext) 1.0 then after copied it changed to 1 (I know like 1.0 and 1 are same but I need that .0 too
Xml input:
XML:
<TIMING>
<CYCLIC-TIMING>
<OFFSET>
<VALUE>0.0</VALUE>
</OFFSET>
<OFFSET2>
<VALUE>1.0</VALUE>
</OFFSET2>
</CYCLIC-TIMING>
</TIMING>
output is
C#:
<TIMING>
<CYCLIC-TIMING>
<OFFSET>
<VALUE>0</VALUE>
</OFFSET>
<OFFSET2>
<VALUE>1</VALUE>
</OFFSET2>
</CYCLIC-TIMING>
</TIMING>
and if I have 0.25 then its fine the issue is only when <number>.0.