Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


problem with c# arrays and xml

From: ivan.atanassoff.L@-----.---
To: NULL
Date: 1/3/2008 2:13:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent