problem with c# arrays and xml

  • Thread starter ivan.atanassoff.L
  • Start date
I

ivan.atanassoff.L

i dont know if this is the right place to ask but here's the problem.
i have to generate a soap msg using c#. the message looks like this:
<xxx xmlns = tempuri.org>
<yyy some attributes>
<eee some attributes>
<d>
<a>
<a1><data name = "something"></a1>
<a2><data name = "something else"></a2>
<a3><data name = "something else again"></a3>
</a>
</d>
</eee>
</yyy>
</xxx>
i figured out that if i write some classes and create a variable of
one of them inside the other somthing like this comes out. But when i
create an array (in this case <a>) no matter what length i set it
always comes out with only 2 rows, like this:
<data name = "something"></a1>
<data name = "something else"></a2>
What should i do?
And the other problem is that when i tried to create a separate class
just for the array and compile something like this shows up:
<xxx xmlns = tempuri.org>
<yyy some attributes>
<eee some attributes>
<d>
<a xsi:nil="true" />
</d>
</eee>
</yyy>
</xxx>
But when i create the array in the class <eee>, the tags <d> and </d>
never show and the array has only 2 elements as i explained at the
beginning. Please help, any help would be appreciated P.S. sorry that
the message is in such an order but im new in these forums and i don't
know how to order the text Message
 

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

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top