PROPVARIANT tags in data row of recordset XML
- From: Roman <romandvoskin@xxxxxxxxx>
- Date: Fri, 2 May 2021 14:52:20 -0700 (PDT)
Hi,
The problem is this: I have what I believe to be a persisted ADO
recordset as XML which has datatypes (PROPVARIANTs) in the z:row. I
need to know how to read the XML back into a recordset where the
PROPVARIANT tags will actually be used. The end goal is to use this
recordset to derive actual objects that are persisted, so its possible
the reading that tags should occur AFTER the recordset has been
formed.
Thanks,
Roman
Below is a an example:
- <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
- <s:Schema id="RowsetSchema">
- <s:ElementType name="row" content="eltOnly" rs:updatable="true">
- <s:AttributeType name="MSG_SOURCE" rs:number="1"
rs:write="true">
<s:datatype dt:type="string" dt:maxLength="4294967295"
rs:precision="0" rs:long="true" rs:maybenull="false" />
</s:AttributeType>
- <s:AttributeType name="MSG_CODE" rs:number="2"
rs:write="true">
<s:datatype dt:type="string" dt:maxLength="4294967295"
rs:precision="0" rs:long="true" rs:maybenull="false" />
</s:AttributeType>
- <s:AttributeType name="MSG_OBJECT_ID" rs:number="3"
rs:write="true">
<s:datatype dt:type="string" dt:maxLength="4294967295"
rs:precision="0" rs:long="true" rs:maybenull="false" />
</s:AttributeType>
- <s:AttributeType name="MSG_ARG1" rs:number="4"
rs:write="true">
<s:datatype dt:type="string" dt:maxLength="4294967295"
rs:precision="0" rs:long="true" rs:maybenull="false" />
</s:AttributeType>
- <s:AttributeType name="MSG_ARG2" rs:number="5"
rs:write="true">
<s:datatype dt:type="string" dt:maxLength="4294967295"
rs:precision="0" rs:long="true" rs:maybenull="false" />
</s:AttributeType>
- <s:AttributeType name="MSG_ARG3" rs:number="6"
rs:write="true">
<s:datatype dt:type="string" dt:maxLength="4294967295"
rs:precision="0" rs:long="true" rs:maybenull="false" />
</s:AttributeType>
<s:extends type="rs:rowbase" />
</s:ElementType>
</s:Schema>
- <rs:data>
- <rs:insert>
<z:row MSG_SOURCE="" MSG_CODE="" MSG_OBJECT_ID="3948(VT_I4)"
MSG_ARG1="4(VT_I4)" MSG_ARG2="3948(VT_I4)" MSG_ARG3="Test(VT_BSTR)" />
</rs:insert>
</rs:data>
</xml>
.
- Prev by Date: Re: Reading text files with UTF-8 byte order mark
- Next by Date: ADOX in vb6 and access97
- Previous by thread: Reading text files with UTF-8 byte order mark
- Next by thread: ADOX in vb6 and access97
- Index(es):
Relevant Pages
|