This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > January 2004 > XML or DTD?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author XML or DTD?
José Luis Otermin

2004-01-29, 6:30 am

Hello!

I'm trying to substitute a DBF table with an XML file.
The reason? Simple:
The DBF is good enough to represent a list of data but is not so good when
we have an object structure.
I'm trying to implement a kind of persistence for visual form objects.
Storing
<?xml version="1.0"?>
<object name='DataBrowser1' base='VXDataBrowser'>
<property name='Left'>3</property>
<property name='Top'>15</property>
<property name='Width'>424</property>
<property name='Height'>160</property>
<property name='Workarea'>1</property>
<EMPTY/>
</object>
instead of a DBF it should be easy to maintain a structure which is more
likely a tree than a flat table.
Well, my question is:
How to store variable record lenght as xml?
Do I need a DTD to accomplish it?
Hope the question is clear.
TIA

--
José Luis Otermin
oterminATciudad.com.ar





Han

2004-01-30, 12:30 am

Schema rather than DTD is generally used now. Schema can be easily got by
using some languages. With legacy ADO you can get XDR, and with .Net XSD. Of
course you can write a schema yourself.

--
Pohwan Han, Microsoft MVP, ASP/ASP.Net, Korea
Have a nice day.

"Jos?Luis Otermin" <otermin@yahoo.com> wrote in message
news:eQb65Ml5DHA.2496@TK2MSFTNGP09.phx.gbl...
quote:

> Hello!
>
> I'm trying to substitute a DBF table with an XML file.
> The reason? Simple:
> The DBF is good enough to represent a list of data but is not so good when
> we have an object structure.
> I'm trying to implement a kind of persistence for visual form objects.
> Storing
> <?xml version="1.0"?>
> <object name='DataBrowser1' base='VXDataBrowser'>
> <property name='Left'>3</property>
> <property name='Top'>15</property>
> <property name='Width'>424</property>
> <property name='Height'>160</property>
> <property name='Workarea'>1</property>
> <EMPTY/>
> </object>
> instead of a DBF it should be easy to maintain a structure which is more
> likely a tree than a flat table.
> Well, my question is:
> How to store variable record lenght as xml?
> Do I need a DTD to accomplish it?
> Hope the question is clear.
> TIA
>
> --
> Jos?Luis Otermin
> oterminATciudad.com.ar
>
>
>
>
>




José Luis Otermin

2004-01-30, 7:29 am

Thanks a lot.
In the meantime I've been investigating and found a reference to your words
in a UML for XML manual.
I'll implement a schema for XML.
Thanks again


--
José Luis Otermin
oterminATciudad.com.ar


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews