XML : Load Recordset From XML String Without Schema

Could anybody tell me if it is possible to load a recordset from an xml string without schema in Visual Basic 6?

For example:

  Dim strXml as strng  strXml  =  "<root><rec><fld>data</fld></rec></root>"  Dim oStream As adodb.Stream  Set oStream = New adodb.Stream  oStream.Open  oStream.WriteText  strXml  oStream.Position = 0  Dim objRs As adodb.Recordset  Set objRs = New adodb.Recordset  objRs.Open oStream  oStream.Close  Set oStream = Nothing  'Loop objRs data  Set objRs  nothing    

Thank you in advance.

No comments:

Post a Comment