Mapping arbitriary and heirachical XML to tuple

Поиск
Список
Период
Сортировка
Искать

Mapping arbitriary and heirachical XML to tuple

От:
"Mark Woodward" <pgsql@mohawksoft.com>
Дата:
I have a system by which I store complex data in PostgreSQL as an XML
string. I have a simple function that can return a single value.

I would like to return sets and sets of rows from the data. This is not a
huge problem, as I've written a few of these functions. The question I'd
like to put out there, is how would you represent heirarchical data as:

    0   1.00   2.5   3.5          5       10        1   1.10   2.2   3.53          3       9    



The biggest problem with XML is storing data is easy, getting it back out
in a sane way is less so. How would you guys think to represent this?
(Obviously, this is a bogus example, real life would be much worse!)

FAQ