Solved

oracle xml

Posted on 2011-03-02
3
379 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to recover a database from a user managed backup

734 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