Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to get XML LastChild attribute value in silverlight
Raj Kumar
Oct 28 2010 6:37 AM
14.6k
Reply
This is my xml..
<Users>
<User UserId="1" Email="
[email protected]
" Password="rajk" FirstName="raj" LastName="kumar" />
<User UserId="2" Email="
[email protected]
" Password="1234" FirstName="raj" LastName="beniwal" />
<User UserId="3" Email="
[email protected]
" Password="2222" FirstName="david" LastName="sann" />
</Users>
i wanna fetch UseId 3 on page...i tried this code but it's not working.
XDocument xmlDoc = XDocument.Load(xmlfile);
int i = 0;
i = xmlDoc.ChildNodes(0).LastChild.Attributes("UserId").Value;
ANyone has idea??
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Explain whats going on with Deployment.CurrentDispatcher.BeginInvoke(() => ........
Asking for right solution for the Video and Voice Chat application, problem getting in client machine IP over INTERNET?