Hello,
Eg: I have an excel data as below
I am trying to load data into dictionary First column as a Key and Second column (list of strings) as a Value
first column S1 need to have Info1, Info2
Whenever there is a string in data column from there I need to check the corresponding group column...
Hello All,
I am facing a awkward behavior in C# and I really would appreciate your help.
I have a XML file 1 (Input file) and copying some nodes to another Xml file so after copied the .0 is lost
for eg: if I have value (innertext) 1.0 then after copied it changed to 1 (I know like 1.0 and 1...
Hello All,
In below Dictionary I have a list<string> and would like to check local string within this list and if it does not contains would like to add to the list.
Can anyone please help me out with the logic in if condition
Dictionary<string, Dictionary<string, List<string>>> dictLst =...
Hello,
I have written below code to delete all child nodes and after deleting it the parent node format is not in expected way.
XmlNodeList packgList = _xd.GetElementsByTagName("Package");
foreach (XmlNode pkg in packgList)
{
foreach (XmlNode test in pkg.ChildNodes)
{
if...
I am creating an XMLDocument
xsi prefix is missing from the schema location when I save the file
My input is :
XmlElement rootnode = xml.CreateElement("Package");
rootnode.SetAttribute("xmlns", "http://www/org/2007");
rootnode.SetAttribute("xmlns:xsi"...
The problem is after the node.parentNode is null it's returning but it's going back to the GetPath function and executing and returning it. so what should I do? Due to this my program is running for a very long time
public static List<string> GetPath(XmlNode node, List<string> parentList)...
Hello all,
In the below attached image have a root and childNodes. So here I want to first check, if I have a Address element in file, then grab a parent elements and add/append all the address elements to it. if there are no address then leave it.
In the new Xml document I should have Same as...
Hello all,
can anyone please give me an idea how to remove duplicates from below list string array
I have a final list List<string[]> finaldata -> (copied all the data from excel rows 2000 and columns 12)
1) in some of the rows I have same data in all columns and I would like to remove that...
In the below code I am getting error with the statement inside the for loop so here basically I am trying to get all the specific tag name I want and copy all of them into new xml document. Can anyone please help me out to resolve this issue
XmlDocument _xd = new XmlDocument()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.