convert String to XML in VB.NET

zewebtedy

New Member
\[code\]Dim filter As Stringfilter = 'Bal_ln_id = 110 and Bal_ln_id = 100' Dim xmldoc As New System.Xml.XmlDocumentxmldoc.LoadXml(filter)\[/code\]I am simply trying to convert a string in to xml file in VB.net.I am getting an xmlException \[code\]'Data at the root level is invalid. Line 1, position 1.'\[/code\]Am I missing something?I am expecting the output as\[code\]<DocumentElement> <DATA_TABLE> <BAL_LN_ID>110</BAL_LN_ID> </DATA_TABLE> <DATA_TABLE> <BAL_LN_ID>100</BAL_LN_ID> </DATA_TABLE></DocumentElement>'\[/code\]
 
Back
Top