Best way of displaying xml from a database column.

I have lots of xml stored as xmltype.
The core data is displayed in a report. If I click on a link in the report I call a popup page which should display the xml.
This xml does occasionally exceed 32K so I can't use a textarea directly.
Whats the best way to display the xml?
I was thinking of maybe a URL region but haven't used these before.
Edited by: Keith Jamieson on Dec 23, 2008 11:38 AM

When I used htp.p I just got the description printed out.
I now have a pl/sql region as follows:
declare
v_clob clob;
BEGIN
for cur in
( SELECT xmltype.getclobval(profile_text_xml) text
from ci_profile
where profile_id='IKM'
LOOP
htp.p('--------------------------------------------------------------------------------------');
htp.plaintext(cur.text);
htp.p('--------------------------------------------------------------------------------------');
END LOOP;
END;
The problem now is that although the xml displays correctly, The bottom of the page is now not interpreted as a web page but rather as plain text.
What I really need is the start of the page to display normally,
the xml to be dispalyed as is,
and then the bottom of the page to be displayed normally again.
The bottom of my page looks like follows:
</PLAINTEXT> -------------------------------------------------------------------------------------- </td> </tr> </table><div class="t1NavigationRegion" id="R3183505456749710" ><table summary="" cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td align="left"></td></tr></table><table id="apex_layout_3183505456749710" class="formlayout" summary="" ><tr><td></td><td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="3184424442749715" /><input type="hidden" name="p_t02" value="" id="P0_TREE_ROOT" /><a class="eLink" title="Edit" href="javascript:popupURL('f?p=4000:371:3897603899166057::::P371_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:3184424442749715,111,4');" tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></td></tr> </table> </div></td> <td valign="top">
</td> </tr> </table></td> </tr> </table><table width="100%" cellpadding="0" cellspacing="0" border="0" summary=""> <tr> <td><img src="/i/themes/theme_1/bot_bar_left.png" alt="" /></td> <td class="t1BotbarMiddle"><div id="t1user">ADMIN</div></td> <td class="t1BotbarMiddle"><div id="t1copy"><!-- Copyright Here --><span class="t1Customize"></span></div></td> <td><img src="/i/themes/theme_1/bot_bar_right.png" alt="" /></td> </tr> </table>
<input type="hidden" name="p_md5_checksum" value="" /></form> <script type="text/javascript"> <!-- //--> </script><!-- Code generated for user with developer privileges. --> <script type="text/javascript"> function popupInfo() { w = open("f?p=4000:34:3897603899166057:PAGE:NO:34:F4000_P34_SESSION,F4000_P34_FLOW,F4000_P34_PAGE:3897603899166057,111,4","winLov","Scrollbars=1,resizable=1,width=700,height=450"); if (w.opener == null) w.opener = self; w.focus(); } </script><table cellpadding="0" border="0" cellspacing="0" summary="Developer Toolbar" align="center"><tbody><tr><td><a class="htmldbToolbar" href="f?p=4500:1000:3897603899166057" style="border-left:1px solid black;" title="Application Express Home Page">Home</a></td><td><a class="htmldbToolbar" title="Application 111" href="f?p=4000:1:3897603899166057::NO:1,4150,RP:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:111,4,111,4,4" style="border-left:1px solid #000000;border-right:1px solid #000000;">Application 111</a></td><td><a class="htmldbToolbar" title="Edit Page 4" href="f?p=4000:4150:3897603899166057::NO:1,4150:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:111,4,111,4,4">Edit Page 4</a></td><td><a class="htmldbToolbar" href="f?p=4000:336:3897603899166057::::FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:111,4,111,4,4" style="border-left:1px solid black;" title="Create">Create</a></td><td><a class="htmldbToolbar" href="javascript:popupInfo()" style="border-left:1px solid black;" title="Session">Session</a></td><td><a class="htmldbToolbar" href="f?p=4000:14:3897603899166057::::FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:111,4,111,4,4" style="border-left:1px solid black;" title="Activity">Activity</a></td><td><a class="htmldbToolbar" title="Debug" style="border-left:1px solid black;" href="f?p=111:4:3897603899166057::YES">Debug</a></td><td id="hideEdit" style="display:none;"><a class="htmldbToolbar" title="Hide Edit Links" href="javascript:quickLinks('HIDE');" style="border-right:1px solid #000000;border-left:1px solid black;">Hide Edit Links</a></td><td id="showEdit"><a class="htmldbToolbar" title="Show Edit Links" href="javascript:quickLinks('SHOW');" style="border-right:1px solid #000000;border-left:1px solid #000000;">Show Edit Links</a></td></tr></tbody></table> <script type="text/javascript"> if(GetCookie('ORA_WWV_QUICK_EDIT') != null){ if(GetCookie('ORA_WWV_QUICK_EDIT') == 'SHOW') quickLinks('SHOW'); } </script> </body> </html>
Edited by: Keith Jamieson on Jan 2, 2009 2:28 PM

Similar Messages

  • How is the best way to send data from local database into remote database ?

    Hi all,
    I need to send data from local Oracle database into remote oracle database. Both sites connected via 128 kbps frame relay connection.
    The sending need to be done once a week, can be done nightly.
    How is the best way to do this ?
    Thank you very much,
    xtanto

    How is the best way to do this ?How much are you planning to send?
    You can use COPY command. Ensure that you have valid database link between two databases.
    Available options are:
    create - creates a new table. errors out if the destination table exists.
    replace - drop the destination table and re-creates with data.
    insert - inserts data if the destination table exists.
    append– appends data into an existing table.
    use set arraysize 5000 -The arraysize specifies the number of rows that SQL*Plus will retrieve from the database at one time.
    copy from scott/tiger@ORCL to scott/tiger@ORCL92 create new_emp using select * from emp;

  • Best way to sync data from temp database back to primary one?

    Hello all!!
    I'm trying to figure the best way to remedy this situation.
    I have a RAC cluster...and one instance went down...some problems with all nodes running, etc. Anyway, while working with Oracle support, I was able to get one node up with sqlplus, and I ran a datapump export, and move that file to a test server I have...as that this was the quickest solution, and I was able to get my developers up and running again on the new server.
    I've been working with Oracle support for weeks now...and now all instances on the main RAC cluster all seem to be up and running now.
    The trouble is...the instance that was 'moved' to the test server...has had a LOT of work on it in many of the schemas it contains. I need to move the developers back to the main unit where backups are taken and more horsepower for load testing, etc.
    What is the best way for me to sync the main server up with the changes made in these weeks on the test server.
    Would it be best to take a datapump export from the test box.....move it over to the main server, and basically then....truncate all non-system schemas and just import from the test server (with changes) back onto the main server?
    Any other suggestions?
    Thank you in advance,
    cayenne
    ps. Both main and test servers are same version of Oracle 11Gr2 RAC. No rman backups currently being taken on test server, not in archive log mode on test server.

    The trouble is...the instance that was 'moved' to the test server...has had a LOT of work on it in many of the schemas it contains. I need to move the developers back to the main unit where backups are taken and more horsepower for load testing, etc.What is the nature of the work? Cleaned and filtered data? New code/stored procedures/triggers/metadata?

  • Best way to copy table from one database to any other database

    I need to write an application to perform database table copy from one kind of database to another kind of database.
    I just wrote a simple JDBC program which essentially does the something like below:
    PreparedStatement statement = null;
    ResultSet rs = null;
    try
    System.out.println("insertSQL:" + insertSQL.toString());      
    statement = target.prepareStatement(insertSQL.toString());
    System.out.println("selectSQL:" + selectSQL.toString());
    rs = source.executeQuery(selectSQL.toString());
    int rows = 0;
    while (rs.next())
    rows++;
    for (int i = 1; i <= columns.size(); i++)
    statement.setString(i, rs.getString(i));
    statement.execute();
    System.out.println("Copied " + rows + " rows.");
    But problem with this one is that it takes lot of time( more than 60 mins) for 100k records transfer. Would there be any faster way to do this?
    TIA...

    Thanks...
    I am using now batch update mechanism and set the fetchsize of resultSet cursor.
    Now I need to copy a table with almost 10 million records to the target database. My program works fine but it takes more than 3 hours.
    I am copying from Postgres table to MS SQL server table.
    Is there any other way or more better appraoch to make this more faster?
    TIA..

  • What could be the best way to Export data from 11.5.8 instance to 12.1.2?

    Hi All
    What could be the best way to Export data from 11.5.8 instance to 12.1.2?
    Release: 11.5.8
    OS: Oracle Solaris on SPARC (32-bit) verison 9
    DB: 9.2.0.1
    Thanks in advance

    What kind of data you are looking to move?
    Database export/import is only supported for full database export/import and the application release should be the same on the source/target nodes.
    You can move the setup using iSetup or FNDLOAD.
    Thanks,
    Hussein

  • What is the best way to display a Interactive Report having 20 columns

    Hi,
    I am having a Interactive Report having many columns (around 20).
    What is the best way to display that report...by default we have to scroll it horizontally to see all the columns.
    I want to avoid Horizontally Scrolling.
    Thanks,
    Deepak

    Hello Deepak,
    You mean apart from using a smaller font size or a bigger monitor?
    You can think about combining / wrapping columns (so more data in one column).
    Or hide some less important data and show that only on demand.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Best way to display executive dashboards on the IPad?

    In your opinion, Apple, what is the best way to display Executive dashboards using the IPad?
    Our company purchased IPads in hopes that they would be able to display the our Web-based Dashboards, but they cannot. The dashboards render fine in the Safari for PC, but in mobile safari they do not. Is there any way to change mobile Safari's user agent?
    Is there any other avenue you suggest?

    First, Apple will not respond here. We're all just fellow users participating in these forums.
    As to your question, what exactly are these "dashboards"? What technology is used to generate them? If it's either Adobe Flash or Java, then they will not work from an iPad and quite likely never will. If they're being generated by standard HTML and JavaScript, then it's possible one of the other browsers, such as Mobile Opera, might work (though with Opera there may be security issues you'd have to investigate before you adopted that as a solution).
    Without more detail as to the site(s) you're trying to access, it's difficult to offer more specific suggestions.
    Regards.

  • Best way to extract data from archived cube

    Hello Experts,
    Can anyone tell me best way to extract data from archived cube.
    Basically I am trying to pull all the data from archived cube and then load it into another brand new infoprovider which is in different box.
    Also I need to extract all the master data for all infoobjects.
    I have two options in my mind:
    1) Use open hub destination
    or
    2) Infoprovider>display data>select the fields and download the data.
    Is it really possible to extract data using option (2) if records are too high and then load it into another infoprovider in new system.
    Please suggest me the pros and cons for the two options.
    Thanks for your time in advance.

    Hello Reddy,
    Thanks a lot for your quick reply.
    Actually in my case I am trying to extract archived infocube data and then load it into new infoprovider which is in different system. If I have connectivity I can simply export data source from archived infocube and then reload into new infoprovider.
    But there is no connectivity between those two systems (where archived cube is and new infoprovider) and so I am left with the two options I mentioned.
    1) Use Open Hub
    or
    2) Extract data manually from infoprovider into excel.
    Can anyone let me know which of the two options is the best and also I doubt on how to use excel in extracting data as excel have limit of no.of records 65536
    Thanks
    Edited by: saptrain on Mar 12, 2010 6:13 AM

  • Walkthrough: Displaying Data from Oracle database in a Windows application.

    This article is intended to illustrate one of the most common business scenarios such as displaying data from Oracle database on a form in a Windows application using DataSet objects and .NET Framework Data Provider for Oracle.
    You can read more at http://www.c-sharpcorner.com/UploadFile/john_charles/WalkthroughDisplayingDataOracleWindowsapplication05242007142059PM/WalkthroughDisplayingDataOracleWindowsapplication.aspx
    Enjoy my article.

    hi,
    this is the code :
    public class TableBean {
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    public List getperInfoAll() {
    int i = 0;
    try
    con = DriverManager.getConnection("url","root","root");
    ps = con.createStatement();
    rs = ps.executeQuery("select * from user");
    while(rs.next()){
    System.out.println(rs.getString(1));
    perInfoAll.add(i,new perInfo(rs.getString(1),rs.getString(2),rs.getString(3)));
    i++;
    catch (Exception e)
    System.out.println("Error Data : " + e.getMessage());
    return perInfoAll;
    public class perInfo {
    String uname;
    String firstName;
    String lastName;
    public perInfo(String firstName,String lastName,String uname) {
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    public String getUname() {
    return uname;
    public String getFirstName() {
    return firstName;
    public String getLastName() {
    return lastName;
    ADF table code:
    <af:table value="#{tableBean.perInfoAll}" var="row"
    binding="#{backing_Display.table1}" id="table1">
    <af:column sortable="false" headerText=""
    align="start">
    <af:outputText value="#{row.firstName"/>//---> Jdeveloper 11g doesn't allow me to use this.. it says firstName is an unknown property..
    </af:column>
    </af:table>
    Please tell me is this the way to do it.. or is it a must to use the DataCollection from the data controls panel...
    Thanks...

  • How is the best way to remove something from a photo?

    How is the best way to remove something from a photo?

    This is difficult to answer without fully knowing what you are trying to do.
    That said, a few excellent and user friendly retouching tools include:  The Spot Heealing Brush Tool, Healing Brush Tool, Patch Tool, and the Cloning Stamp Tool.

  • How is the best way to read data from an iphone if you lost your itunes data after a crash?

    How is the best way to read data from an iphone if you lost your itunes data after a crash?

    How is the best way to read data from an iphone if you lost your itunes data after a crash?

  • Whats the best way to transfer everything from my old macbook pro to a new mac mini, i have a external hard drive which i backup to regularly via time capsule

    whats the best way to transfer everything from my old macbook pro to a new mac mini, i have a external hard drive which i backup to regularly via time capsule

    Check out > OS X Lion: How to use Migration Assistant to transfer files from another Mac

  • Different ways to Transfer data from one database to another database

    Hi all,
    What are the ways to transfer data from one database to another database. With the following options, i Can transfer data as far as i know. Please
    correct me if i am wrong or tell me if there is any other options are available.
    1) Create database link/connection string and using this string and COPY command, we can transfer data.
    2) By using Export and Import utilities.
    I told first one to my interviewer, he told, its strange, by using, COPY command also can we transfer data ? As far as i know, we can transfer data. Am i right ?
    Thanks in advance,
    Pal

    transfer data from one database to another database.You mean store the data of one to another?
    1) Create database link/connection string and using this string and COPY command, we can transfer data.every SELECT on a DB-link is transfering data. And you can have all kind of transfers and store on the e.g CTAS of materialized views or.... the SQL*PLUS COPY :
    The COPY command is not being enhanced to handle datatypes or features introduced with, or after Oracle8i. The COPY command is likely to be made obsolete in a future release.
    But there are many others. Check for ORACLE Streams, and the "COPY" your interviewer was mentioning is about the operating file system COPY right? That's transportable tablespaces.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/tspaces013.htm#ADMIN11403
    -- andy

  • What is the best way to import pictures from Lightroom 5 into FCP X

    What is the  best way to transfer pictures from Lightroom 5 into Final Cut Pro X?

    There is no one best way.  If, for instance, you want to be able to zoom into the picture with a Ken Burns effect then you may want to save out a very high res version that will be larger than your video resolution. Just use Lightroom to export a jpg file wherever you want it. You could export it into the Events folder and then choose not to copy it when you import it within FCPx. You could import the picture into iPhoto and then access it directly from within FCPx. Those are two simple, "regular" ways to get it into FCPx but if you are not going to Ken Burns the image by zooming into it and such you will want to crop it in Lightroom to the same size you will be using ie if you are making 720HD video then crop the image to that size and proportion before you export it from Lightroom.

  • What is the best way to import photos from aperture to my new Lightroom

    What is the best way to import photos from aperture to my new Lightroom ?

    See if this helps
    http://lightroomsolutions.com/articles/migrating-from-aperture-to-lightroom-where-do-i-beg in/

Maybe you are looking for

  • Windows 7, iTunes 10.6.1.7 - unable to connect to iTunes store

    So, I recently (January 2012) purchased a new computer running Windows 7.  I have iTunes 10.6.7.1.  However, I can not connect to the iTunes store.  I have disable my firewall, changed settings in Windows, uninstalled and reinstalled iTunes, followed

  • How can i upgrade my powerpc g5 from OS X 10.4 to 10.5?

    I have an iMac PowerPC G5 (3.0) with a processor of 1.9 GHz, 512 MB of memory, PowerMac 12,1, I´m currentrly using OS X 10.4.11. Does anyone knows  if this kind of Mac can be upgrate it ? what should I do?

  • Error Message, The installer database is corrupt.

    I get the error message, "The installer database is corrupt" when I try to install Photoshop CS3 on my new computer with Windows 8.

  • HT204266 How do I permenantly delete & remove unwanted apps from my ipad

    I have a great number of apps downloaded and now I get the message that the Ipad cqannot sync because there is not enough space left to Sync. I have deleted a number of apps but they still remain listed as waiting to install. How can I permenantly re

  • Cannot re-install CS5

    I have a new machine and cannot install CS5. I did deactivate it from my old machine, have tripple checked the serial number, but cannot  get CS5 to show up as a selection for installation. The number is on the origianl packaging, and is accurate. An