KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to get value of child node from XDocument using linq <root> <Cust> <ACTNumber>1234</ACTNumber> <Address> <Street></Street> <City>123 Main street</City> <State>AL</State> </Address> </Cust> </root> I tried this: xDocTest.Root.Elements("Cust").Elements("ACTNumber") If I try Address instead of ACTNumber then it works. But its not giving the child node value.
Tags (comma-separated)
Save Edits
Cancel