Hi Gary,
You need to do some logic for finding the duplicate.
there are lots of algorithms or different approaches.
Anyway you can use the below code to iterate the XMLList.
var results:XMLList = PhoneUsersList.PhoneUsers.MACAddress;
for each(var item:* in results){
item.toString() // this will give the MACAddress.
}
You can either move everything initially into one dictionary and run a
loop.
otherwise doing a nested loop and finding out the duplicates.
Let me know, if u need further help.
Happy Coding,
Cheers,
Anoop P K
On Sep 23, 10:14 pm, "g...@flex" <[email protected]> wrote:
> Hi,
> I need to check for duplicate data in an xml.
>
> Ex:-
> <PhoneUsersList>
>
> <PhoneUsers UserId="jjoseph">
> <FirstName>Joe</FirstName>
> <LastName>Joseph</LastName>
> <MACAddress>1111:1111:1111</MACAddress>
> </PhoneUsers>
>
> <PhoneUsers UserId="jdoe">
> <FirstName>Joe</FirstName>
> <LastName>Doe</LastName>
> <MACAddress>1111:1111:1111</MACAddress>
> </PhoneUsers>
>
> <PhoneUsers UserId="jdoe">
> <FirstName>Joe</FirstName>
> <LastName>Doe</LastName>
> <MACAddress>2222:2222:2222</MACAddress>
> </PhoneUsers>
>
> </PhoneUsersList>
>
> Is there a way to check for the duplicate entries of lastname
> firstname macaddress and userid?
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.