Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> How to Check Value of XMLType ?
10gR2
I get a XMLType fragment from a SELECT like:
SELECT xmlelement("people",....)
INTO l_xmltype
FROM dual;
Result is either like this for example, a "full" chunk of XML:
<people>
<author>
<firstname>Robert</firstname>
<surname>Frost</surname>
<address>
<email>xxx_at_xxx.xxx</email>
</address>
</author>
</people>
Or when no records found:
<people></people>
I want to check what type of result I get :
IF l_xmltype = '<people></people>' THEN
DBMS_OUTPUT.PUT_LINE('no record found'); ELSE
Thanks Received on Sat May 12 2007 - 00:04:54 CDT
![]() |
![]() |