I have the following XML representation for a user:
<pc:Person xmlns:pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls">
<pc:DisplayName>John Dodo</pc:DisplayName>
<pc:AccountId>DOMAIN\john.dodo</pc:AccountId>
<pc:AccountType>User</pc:AccountType>
</pc:Person>
How can I convert this to a SPUser
object?
I don't want to parse the XML for this so I guess there is a standard way to do it but could not find how.
(I'm using SharePoint 2010 if that counts)