Hi,
I am away from my office PC now, so i can't get my problem codes up.
I can achieve this in C# with xmldocument and xmlelement
<Device>
<ExecuteProcess 1 />
<ExecuteProcess 2>
Test
</ExecuteProcess2 >
<ExecuteProcess 3>
123
</ExecuteProcess3 >
</Device>
But, when i try to generate more than this...
<Device>
<ExecuteProcess 1 />
<ExecuteProcess 2>
<DeviceName>I BM PC</DeviceName> // not sure how to get it to be part of
ExecuteProcess 2
<DeviceLength>6 </DeviceLength> // not sure how to get it to be part of
ExecuteProcess 2
</ExecuteProcess2 >
<ExecuteProcess 3>
<Calculate id="1">123</Calculate> // not sure how to get it to be part
of ExecuteProcess 3 and place id right here!
</ExecuteProcess3 >
</Device>
I fail a lot of times when i try to do like above and always get the
results to be like this below.
<Device>
<ExecuteProcess 1 />
<DeviceName>I BM PC</DeviceName>
<DeviceLength>6 </DeviceLength>
<ExecuteProcess 2>
</ExecuteProcess2 >
<Calculate id="1">123</Calculate>
<ExecuteProcess 3>
</ExecuteProcess3 >
</Device>
Any help? I just want to get things right? Sorry that i can't attached my
code here at home but can anyone share some thoughts on this please -
probably some code snippets :)
Cheers.
--
Regards,
Chua Wen Ching
Visit us at http://www.necoders.com