How would i return a number of PayeePayPerWeek elements (with sub elements) where a PayeeType is a certain value (ie if equal to "example type1" or "example type2" i would return 2 instances of PayeePayPerWeek...
I tried this but am only getting back the 2 PayeeType elements not their parent element.
Could you post more details to us?It will help us to solve your problems.
Best regards,
Yijing Sun
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
72 Posts
Linq to xml query
Jan 21, 2021 11:34 AM|mark1961|LINK
How would i return a number of PayeePayPerWeek elements (with sub elements) where a PayeeType is a certain value (ie if equal to "example type1" or "example type2" i would return 2 instances of PayeePayPerWeek...
I tried this but am only getting back the 2 PayeeType elements not their parent element.
Contributor
3730 Points
1412 Posts
Re: Linq to xml query
Jan 22, 2021 06:18 AM|yij sun|LINK
Hi mark1961,
Accroding to your description and codes,I don't understand your requirment clearly.I have created a test that I have get below result:
Do you need below this:
Could you post more details to us?It will help us to solve your problems.
Best regards,
Yijing Sun