XML Innertext Add's all my nodes! What am i doing wrong?
-
XML: DbRemote; License; UploadFile; DownloadFile; ; C# Code: List AutostartJobsStringList = new List(); foreach (XmlNode AutostartNode in kindknoop.ChildNodes) { if (AutostartNode.Name== "Job") AutostartJobsStringList.Add(kindknoop.Value); } Output: AutostartJobsStringList[0] == DbRemoteLicenseUploadFileDownloadFile AutostartJobsStringList[1] == DbRemoteLicenseUploadFileDownloadFile AutostartJobsStringList[2] == DbRemoteLicenseUploadFileDownloadFile AutostartJobsStringList[3] == DbRemoteLicenseUploadFileDownloadFile Preferred output: AutostartJobsStringList[0] == DbRemote AutostartJobsStringList[1] == License AutostartJobsStringList[2] == UploadFile AutostartJobsStringList[3] == DownloadFile Question: What am i doing wrong? How can i get the preffered output?
-
XML: DbRemote; License; UploadFile; DownloadFile; ; C# Code: List AutostartJobsStringList = new List(); foreach (XmlNode AutostartNode in kindknoop.ChildNodes) { if (AutostartNode.Name== "Job") AutostartJobsStringList.Add(kindknoop.Value); } Output: AutostartJobsStringList[0] == DbRemoteLicenseUploadFileDownloadFile AutostartJobsStringList[1] == DbRemoteLicenseUploadFileDownloadFile AutostartJobsStringList[2] == DbRemoteLicenseUploadFileDownloadFile AutostartJobsStringList[3] == DbRemoteLicenseUploadFileDownloadFile Preferred output: AutostartJobsStringList[0] == DbRemote AutostartJobsStringList[1] == License AutostartJobsStringList[2] == UploadFile AutostartJobsStringList[3] == DownloadFile Question: What am i doing wrong? How can i get the preffered output?
-
XML: DbRemote; License; UploadFile; DownloadFile; ; C# Code: List AutostartJobsStringList = new List(); foreach (XmlNode AutostartNode in kindknoop.ChildNodes) { if (AutostartNode.Name== "Job") AutostartJobsStringList.Add(kindknoop.Value); } Output: AutostartJobsStringList[0] == DbRemoteLicenseUploadFileDownloadFile AutostartJobsStringList[1] == DbRemoteLicenseUploadFileDownloadFile AutostartJobsStringList[2] == DbRemoteLicenseUploadFileDownloadFile AutostartJobsStringList[3] == DbRemoteLicenseUploadFileDownloadFile Preferred output: AutostartJobsStringList[0] == DbRemote AutostartJobsStringList[1] == License AutostartJobsStringList[2] == UploadFile AutostartJobsStringList[3] == DownloadFile Question: What am i doing wrong? How can i get the preffered output?