Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HOWTO: use table column value as tag name in XMLElement (9iR2)

28499Oct 27 2006 — edited Nov 6 2006
Hi,

maybe what I'm trying to do simply does not work, but here is my sample:

select XMLElement(DUMMY, DUMMY).getClobVal( ) as SAMPLE
from DUAL;

returns the following XML

<DUMMY>X</DUMMY>

But what I want to get is

<X>X</X>

because "X" is the value of column "DUMMY" for table DUAL

Is there a way to do this in PL/SQL XML-DB in Oracle 9i-R2?

TIA,
Stefan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2006
Added on Oct 27 2006
15 comments
1,648 views