Adding multiple rows of XML to a dataset and then put it in a datagrid

VibeZine

New Member
I have the following code (C#):\[code\]FinalXMLString = FinalXMLString + "<row " + xmlString + " />"; xmlString = ""; dataList.Clear(); } StringReader streamreader = new System.IO.StringReader(FinalXMLString); XmlTextReader xmlreader = new System.Xml.XmlTextReader(streamreader); dataSet.ReadXml(xmlreader);\[/code\]My FinalXMLString looks as follows:\[code\]<row EntryID = \"1\" ManufacturerID = \"59\" Name = \"Conbraco hkhkhklh\" AuditDate = \"2/22/2013 10:22:46 AM\" SqlLogin = \"UNITED-SYSTEMS\\jessical\" Application = \"G5;Desktop;admin\" ChangeType = \"U\" /><row EntryID = \"2\" ManufacturerID = \"59\" Name = \"Conbraco hkhkhklh\" AuditDate = \"3/18/2013 4:14:21 PM\" SqlLogin = \"uss2012SQL01\" Application = \"G5;Desktop;admin\" ChangeType = \"U\" />"\[/code\]That is from debugger mode so the backslashes are still there. The problem is that the ReadXml fails every time. Is the format of the xml above not correct? Any help is appreciated.
 
Back
Top