J
jake
Can someone please give me the xsd schema lines that can produce xml
such as the following:
<accounts>
<account>
<number>10135</number>
<name>john doe's checking account</name>
<transaction>
<debit>ATM</debit>
<amount>200</amount>
</transaction>
<transaction>
<debit>check</debit>
<amount>100</amount>
</transaction>
<transaction>
<debit>ATM</debit>
<amount>60</amount>
</transaction>
...
</account>
<account>
<number>106932</number>
<name>jane doe's investment account</name>
<transaction>
<credit>overnight deposit</credit>
<amount>1500</amount>
</transaction>
...and so on
</account>
...
</accounts>
I can take the easy way out and treat "transactions" as a separate
table, so to speak, and then link it to "accounts" table by some key
say, account number. But, the resulting xml will not look like the
above.
So, how can I do it so that "transactions" becomes a collection of rows
that belong to a row in "accounts"
The example in MSDN is too complicated. xsd designer is no help either.
such as the following:
<accounts>
<account>
<number>10135</number>
<name>john doe's checking account</name>
<transaction>
<debit>ATM</debit>
<amount>200</amount>
</transaction>
<transaction>
<debit>check</debit>
<amount>100</amount>
</transaction>
<transaction>
<debit>ATM</debit>
<amount>60</amount>
</transaction>
...
</account>
<account>
<number>106932</number>
<name>jane doe's investment account</name>
<transaction>
<credit>overnight deposit</credit>
<amount>1500</amount>
</transaction>
...and so on
</account>
...
</accounts>
I can take the easy way out and treat "transactions" as a separate
table, so to speak, and then link it to "accounts" table by some key
say, account number. But, the resulting xml will not look like the
above.
So, how can I do it so that "transactions" becomes a collection of rows
that belong to a row in "accounts"
The example in MSDN is too complicated. xsd designer is no help either.