Search results for query: *

  • Users: ram_rocks
  • Content: Threads
  • Order by date
  1. R

    Question Load Excel data into Dictionary

    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...
  2. R

    After Copying XML node from one document to another document the values after decimal point is lost

    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...
  3. R

    Resolved check if list contains item from another list

    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 =...
  4. R

    Resolved Parent Node format issue after deleting/removing all child nodes

    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...
  5. R

    Resolved "xsi" missing from schema location

    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"...
  6. R

    Resolved Why my recursive function calling itself again after returning the value ?

    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)...
  7. R

    How to get all Parent Elements ?

    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...
  8. R

    how to Remove duplicates from List<String[]>

    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...
  9. R

    Resolved cannot convert from string to System.Xml.XmlNode error

    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()...
Back
Top Bottom