Dim filter As String
filter = 'Bal_ln_id = 110 and Bal_ln_id = 100'
Dim xmldoc As New System.Xml.XmlDocument
xmldoc.LoadXml(filter)
我只是想在 VB.net 中将字符串转换为 xml 文件。我得到一个 xmlException'Data at the root level is invalid. Line 1, position 1.'
我错过了什么吗?
我期待输出为
<DocumentElement>
<DATA_TABLE>
<BAL_LN_ID>110</BAL_LN_ID>
</DATA_TABLE>
<DATA_TABLE>
<BAL_LN_ID>100</BAL_LN_ID>
</DATA_TABLE>
</DocumentElement>'