problem with c# arrays and xml

Discussion in 'XML' started by ivan.atanassoff.L@gmail.com, Jan 3, 2008.

  1. Guest

    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
     
    , Jan 3, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bill Reyn
    Replies:
    3
    Views:
    2,285
    Bob Hairgrove
    Jun 22, 2004
  2. rir3760
    Replies:
    1
    Views:
    355
    Dave Thompson
    Apr 4, 2005
  3. Philipp
    Replies:
    21
    Views:
    1,160
    Philipp
    Jan 20, 2009
  4. Kev Jackson
    Replies:
    2
    Views:
    132
  5. Cec Tre
    Replies:
    3
    Views:
    199
    Robert Klemme
    Mar 19, 2010
Loading...

Share This Page