Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
How to get XML LastChild attribute value in silverlight
Raj Kumar
14y
14.6k
1
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??
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?