Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to validate duplicate values for an xml tag in asp.net?
There are duplicate values for the Payroll Account Id. Has to validate if the same tag contains duplicates .I want to check without using LINQ
My Xml Tag is as below:
XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cus="http://wps.fgb.com/CustomerOnboard/" xmlns:cry="http://util.fgb.com/Crypt">
  <soapenv:Header/>
  <soapenv:Body>
    <cus:getOnboardingDetails>

            <molId></molId>
            <payrollAccountId>19498235345</payrollAccountId>
             <payrollAccountId>19498235345</payrollAccountId>

    </cus:getOnboardingDetails>
  </soapenv:Body>
</soapenv:Envelope>
Posted
Updated 20-Oct-15 19:07pm
v2
Comments
Maciej Los 21-Oct-15 1:54am    
Why whithout using Linq? It's really fast way to compare data...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900