public inbox for [email protected]
help / color / mirror / Atom feedFrom: ft <[email protected]>
To: [email protected]
Subject: xml build a list of all elements
Date: Tue, 26 Mar 2024 22:04:55 +0100
Message-ID: <[email protected]> (raw)
Hello,
I have a postgresql database table with xml data.
What I need is a list of all elements and attributes.
Example:
<area>
<sub>
<sub2 attr='1'>comment</sub2>
<sub2 attr='2'>comment</sub2>
<sub>
</area>
The result should be:
/area
/area/sub
/area/sub/sub2
/area/sub/sub2@attr
/area/sub/sub2
/area/sub/sub2@attr
or distinct (it's enough)
/area
/area/sub
/area/sub/sub2
/area/sub/sub2@attr
Is there a postgresql function to build this list?
Franz
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: xml build a list of all elements
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox