Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Storing tabledata in XML
Thu, May 9 2013 11:56 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Is there a standard for this? Failing that does anyone have a preferred layout?

If neither I'll probably go for

<Table Name>
<Row>
<Field Name>
data
</Field>
...
...
<Field Name>
data
</Field>
</Row>
...
...
</Table>


Roy Lambert
Fri, May 10 2013 8:00 AMPermanent Link

Adam Brett

Orixa Systems

Roy,

What you have laid out is sensible AFAIK.

Honestly I tend to just use ClientDataset, and Save after setting the save-format to XML.

Then I can just use a CDS to reload the data later & I don't have to worry my little head about the whole process of serializing the data.

I would imagine there could be issues with escape characters which the CDS is probably coded to cope with, but which might trip you up otherwise.

i.e. say you want to save an XML document in your dataset! You'll have to add code to cope with that possibly confusing your parser, if you write one yourself.
Fri, May 10 2013 4:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Is there a standard for this? Failing that does anyone have a preferred
layout? >>

You do know that the EDB import/export supports XML, correct ?  It also
escapes any XML in CLOBs for you in the process.

Tim Young
Elevate Software
www.elevatesoft.com
Sat, May 11 2013 2:41 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

>You do know that the EDB import/export supports XML, correct ? It also
>escapes any XML in CLOBs for you in the process.

I do as of about 15 seconds ago <vbg>

I'll have a look at what your version does and copy it for my nlhStrTable and query generator which is where I'm thinking of using it

Roy
Tue, May 14 2013 11:52 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I'll have a look at what your version does and copy it for my nlhStrTable
and query generator which is where I'm thinking of using it >>

It's very basic, but I think it should do the job.

Tim Young
Elevate Software
www.elevatesoft.com
Image