Solved

oracle xml

Posted on 2011-03-02
3
375 Views
Last Modified: 2012-05-11
experts.. How do i output a xml in dbms_output.put_line in an anonymous block? I have a function which returns a  xmltype and I want to test the output of this function. I have an anonymous block as

set serveroutput on;
declare
v_xml xmltype;
begin
v_xml:=func_name(1,'abc');
dbms_output.put_line('vxml is' || v_xml);
end;

This is giving an error. How do I see what the xml has in it? Is there another method in dbms_output??
0
Comment
Question by:chickanna
  • 2
3 Comments
 
LVL 15

Expert Comment

by:Aaron Shilo
ID: 35018686
what is the error ?
0
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 500 total points
ID: 35019217
hi

here are two options for XML

select xmltype('<x><y><z>123</z></y></x>') from dual;
select xmlserialize(document xmltype('<x><y><z>123</z></y></x>')) from dual;
0
 
LVL 32

Expert Comment

by:awking00
ID: 35029041
What does your function look like?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Consolidating oracle query results to a single line 8 60
SQL Query 34 99
exp/imp 25 75
PL SQL Developer 7 36
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question