Re: [xml-dev] Tree v. Table - A relational XML object model...?

From
Thomas B. Passin <>
To
Date
2003-03-03T06:39:18Z
ID
<02ff01c2e14f$9d880bc0$6401a8c0@tbp1>
Thread
Re: [xml-dev] Tree v. Table - A relational XML object model...?
[Elliotte Rusty Harold]

>
> Does it really? It seems to fit pretty nicely to me. For example,
>
>
>     <doc>This is <strong>very</strong> important.</doc>
>

You turn mixed content into non-mixed elements (temporarily, for the
purposes of storage or table-modeling) by instantiating  an implied _text_
element for each fragment of PCDATA.  You use an illegal "element" name so
that you can later distinguish between PCDATA pseudo-elements and real
elements.  The mixed example becomes, say,

<doc><~text>This is</~text> <strong><~text>very</~text></strong>
<~text>important.</~text></doc>

It looks awful but its function is not to be read and written but to be
crammed into a table model.

Cheers,

Tom P