V vinylsearcher.com Member Joined Nov 22, 2005 Messages 6 Location uk Programming Experience 1-3 Nov 22, 2005 #1 I have a xml string in a variable and I want to get it into a dataset or datatable without having a txt file involved?
I have a xml string in a variable and I want to get it into a dataset or datatable without having a txt file involved?
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,873 Location Norway Programming Experience 10+ Dec 24, 2005 #2 Dataset.ReadXml can be done with a XmlReader, and XmlReader can be inputted with a xml string fragment. Read the example found in documentation below the list of constructors for System.Xml.XmlTextReader - there is the code almost straight off the book for you. Online this page is found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmltextreaderclassctortopic.asp Upvote 0 Downvote
Dataset.ReadXml can be done with a XmlReader, and XmlReader can be inputted with a xml string fragment. Read the example found in documentation below the list of constructors for System.Xml.XmlTextReader - there is the code almost straight off the book for you. Online this page is found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmltextreaderclassctortopic.asp