Using LINQ to XML, how can I join two sets of data based on ordinal position?
Posted
by Donald Hughes
on Stack Overflow
See other posts from Stack Overflow
or by Donald Hughes
Published on 2010-04-24T03:22:09Z
Indexed on
2010/04/24
3:23 UTC
Read the original article
Hit count: 383
Using LINQ to XML, how can I join two sets of data based on ordinal position?
<document>
<set1>
<value>A</value>
<value>B</value>
<value>C</value>
</set1>
<set2>
<value>1</value>
<value>2</value>
<value>3</value>
</set2>
</document>
Based on the above fragment, I would like to join the two sets together such that "A" and "1" are in the same record, "B" and "2" are in the same record, and "C" and "3" are in the same record.
© Stack Overflow or respective owner