Dataset>XML>SQLText field>XML>Dataset

T

thomas

I must be doing something obvious wrong here, but:

I perform a query to retrieve a dataset - I want to archive this in a
SQL field for seperate retrieval later, while the original data may
have moved on - so I write it to a string of XML using ds.GetXML(). I
then write that string to the DB, into 1 'text' type field. (I know the
data will never get over a certain size)

Later I read that field and retrieve the data as a string and attempt
to simply perfrom a ds.ReadXML(xmlstr). & this errors. Upon examining
the resultant XML I find the XML retrieved invariably has <newdataset>
as the root element and for some BIZZARE REASON puts another
</newdataset><newdataset> halfway through the XML - making the root
element corrupt (there's more than 1).

I am contemplating pulling it out with replace, but I feel there's
something shallow yet meaningful I'm missing here... GetXML has no
overloads so is there something I need to do with the orignal DS to
stop this from happening?

I know it's not SQL manipulation, since it just thinks its a hefty text
object, and since I can't get the ReadXML to even work, I assume it
must be the GetXML or orgin dataset..

Help! Has anyone seen this before?

T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top