i have to read the nodes of this XML and store in variables, i can either use XDocument or XmlDocument, how can i accomplish this? the structure is quite complex, i don't how should i iterate over the elements..Thank you in advance.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Nov 18, 2018, 4:54 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Nov 18, 2018, 5:26 PM EST
Joao Scoob18 reputationPosted Nov 19, 2018, 4:41 AM EST
foreach(XmlNode xnode in getRoot.ChildNodes)
{
}
nsmgr.AddNamespace("csdb", "http://site.de/csadb");
XmlNodeList AuthNodes = doc.SelectNodes("soapenv:Envelope/soapenv:Header/soapenv:Body/csadb:AP_002_CreateDocument/csadb:AP_015_Request/csadb:Header/csadb:AuthData/", nsmgr);
Laxmidhar SahooRank #383 · 6.6K reputationPosted Nov 19, 2018, 4:48 PM EST