I have an XML data set with 10K records, each containing a set of fields.
I'd like to know which fields need to be null and which can be non-null in the database schema that matches the dataset.
Does linq offer way to produce a big intersection?
Example:
<set>
<item>
<a/>
<foo />
<b/>
<c/>
</item>
<item>
<a/>
<foo />
<b/>
<c/>
</item>
<item>
<a/>
<b/>
</item>
<item>
<a/>
<foo />
<b/>
</item>
</set>
Prototype:
string[] CommonFieldNames(XElement[] elements)
{
// ...
}
Desired Result:
{ "a", "b" }