Can we change table into XML through OWB

Hi everyone,
Is it possible to change table into XML through OWB?
Can anybody help me.
just send me the steps to do
Thanks in advance
Rachit

Hello, Rachit
As far as I understand our question – you need to export data from the table into XML file.
I don’t think you have direct operator within OWB (at least for ver. 9.2.0.4). But anyway, you could write PLSQL procedure using DBMS_XMLQUERY to perform XML generation and transform it with your stylesheet.
Unfortunately, this package uses DOM to work with XML, so could have a serious memory consumption while trying to export large tables this way.

Similar Messages

  • After generating a table into xml how can i save the result in a XML table?

    Hello everyone,
    I’ve used this function to generate a table into XML schema :
    example :
    SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
    xmlforest(name as "Name", population as "Population")) from state;
    result:
    <Statexmlns:gml="http://www.opengis.net/gml">
    <Name>Wilkopolska</Name>
    <Population>35000</Population>
    </State>
    Now I need to insert the result into a XML table, because i need to save the result to use it latter ,I hope that someone can help and if there's other solution to do this it would be great.
    Thanks a ot and best regards,
    Lama.

    Just insert into a table....
    insert into t
    SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
    xmlforest(name as "Name", population as "Population")) from state; and a complete example:
    SQL> create table t (test xmltype)
      2  /
    Table created.
    SQL>
    SQL> create table state
      2  (name varchar2(10)
      3  ,population number
      4  )
      5  /
    Table created.
    SQL>
    SQL> insert into state values ('WI', 35000)
      2  /
    1 row created.
    SQL>
    SQL> SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
      2  xmlforest(name as "Name", population as "Population")) from state;
    XMLELEMENT("STATE",XMLATTRIBUTES('HTTP://WWW.OPENGIS.NET/GML'AS"XMLNS:GML"),XMLFOREST(NAMEAS"NAME",P
    <State xmlns:gml="http://www.opengis.net/gml"><Name>WI</Name><Population>35000</
    SQL>
    SQL>
    SQL> insert into t
      2  SELECT xmlelement("State", xmlattributes( 'http://www.opengis.net/gml' as "xmlns:gml"),
      3  xmlforest(name as "Name", population as "Population")) from state;
    1 row created.
    SQL> select *
      2    from t
      3  /
    TEST
    <State xmlns:gml="http://www.opengis.net/gml"><Name>WI</Name><Population>35000</

  • Error while downloading data from internal table into XML file

    hi all,
    i developed a program to download data from into internal table to xml file like this.
    tables: mara.
    parameters: p_matnr like mara-matnr.
    data: begin of itab_mara occurs 0,
                matnr like mara-matnr,
                ernam like mara-ernam,
                aenam like mara-aenam,
                vpsta like mara-vpsta,
          end of itab_mara.
    data: lv_field_seperator type c,     " value 'X',
          lv_xml_doc_name(30) type c,    " string value ‘my xml file’,
          lv_result type i.
          lv_field_seperator = 'x'.
          lv_xml_doc_name = 'my xml file'.
    types: begin of truxs_xml_line,
              data(256) type x,
          end of truxs_xml_line.
    types:truxs_xml_table type table of truxs_xml_line.
    data:lv_tab_converted_data type truxs_xml_line,
         lt_tab_converted_data type truxs_xml_table.
    data: lv_xml_file type rlgrap-filename value 'c:\simp.xml'.
    select matnr ernam aenam vpsta from mara into table itab_mara up to 5
           rows where matnr = p_matnr.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = lv_field_seperator
      I_LINE_HEADER              =
      I_FILENAME                 =
      I_APPL_KEEP                = ' '
       I_XML_DOC_NAME             = lv_xml_doc_name
    IMPORTING
       PE_BIN_FILESIZE            = lv_result
      TABLES
        I_TAB_SAP_DATA             = itab_mara
    CHANGING
       I_TAB_CONVERTED_DATA       = lt_tab_converted_data
    EXCEPTIONS
      CONVERSION_FAILED          = 1
      OTHERS                     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    open dataset lv_xml_file for output in binary mode.
    loop at lt_tab_converted_data into lv_tab_converted_data.
    transfer lv_tab_converted_data to lv_xml_file.
    endloop.
    close dataset lv_xml_file.
    this program is syntactically correct and getting executed, but when i open the target xml file it is showing the following error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/simp.xml'.
    will anyone show me the possible solution to rectify this error
    thanks and regards,
    anil.

    Hi,
    Here is a small sample program to convert data in an internal table into XML format and display it.
    DATA: itab  TYPE TABLE OF spfli,
          l_xml TYPE REF TO cl_xml_document.
    * Read data into a ITAB
    SELECT * FROM spfli INTO TABLE itab.
    * Create the XML Object
    CREATE OBJECT l_xml.
    * Convert data in ITAB to XML
    CALL METHOD l_xml->create_with_data( name = 'Test1'
                                         dataobject = t_goal[] ).
    * Display XML Document
    CALL METHOD l_xml->display.
    Here are some other sample SAP programs to handle XML in ABAP:
    BCCIIXMLT1, BCCIIXMLT2, and BCCIIXMLT3.
    Hope this helps,
    Sumant.

  • Can i change table in query as per user given data

    hi master
    sir,
    can i change table in query as per user given data
    see
    select * from @variable
    i need use in lov
    please give me idea
    thankingyou
    Aamir

    You cant directly use in sql instead you can write an anonymous block and frame the query as per the input table name and then use execute immediate to execute the query.
    Something like this
    declare
    qry_table varchar2(30);
    qry_stmt varchar2(1000);
    type typ_sample is table of VARCHAR2(100) index by binary_integer;
    tab_sample typ_sample ;
    begin
    qry_table := &Table_name
    qry_stmt := 'select a from '||qry_table;
    execute immediate qry_stmt bulk collect into tab_sample ;
    end;
    Message was edited by:
    Shasi

  • How to write data into xml through web service

    Hi,
      I have a requirement to write the data into xml through a web service .send me related links and sample code if any.

    hi kiran,
      write the data into xml : We need suitable set of java Beans for handling WebService Data.
       However, there are cases when you may prefer an alternate mapping, or when there just isn't a well-defined mapping for your particular schema construct (xsd:choice is a common example). For these cases, IBM® WebSphere® has introduced a new feature called Custom Data Binding that allows you to integrate alternate data binding technologies like JAX-B, EMF/SDO and XML beans, as well to define your own XML schema to Java mappings. This article provides an overview of the technology and how you can get started integrating it into your application.
    GO THru THis Links :
    http://www-128.ibm.com/developerworks/websphere/library/
    techarticles/0601_gallardo/0601_gallardo.html.
    Hope It Helps.
    Thanks
    Varun CN

  • I am based in Russia, and I use a Russian cred card number. Hence my apple store page is in Russian language (which i dont speak). Can I change this into English language and if yes, how?

    I am based in Russia, and I use a Russian cred card number. Hence my apple store page is in Russian language (which i dont speak). Can I change this into English language and if yes, how?

    The only way I know is that you need a physical address and credit card of an English speaking country.

  • When i type any word in address bar, it is search by "speedbit", How i can to change it into google searching ?

    when i type any word in address bar, it is search by "speedbit", How i can to change it into google searching ?

    When you ''reset'' keyword.url, you blank the entry. Firefox doesn't know what to do with the keyword you've typed in, so it adds www. to the front, and tacks .com to the end and takes you www.test.com.
    You need a new search engine entry. '''Try making keyword.url = http://www.google.com/#q='''
    Every once in a while a rogue search engine wrecks my browser, and I end up scrambling for this very answer. I hope the devs will create an easier fix for future versions.

  • Can I change the fisheye look through premiere pro, from a GoPro camera?

    Can I change the fisheye look through premiere pro, from a GoPro camera?

    That depends, at least in part, on which platform you're. [That and the exact version of Premiere Pro you have are two data points that you should always include...]
    On Windows, Premiere has an effect called Lens Distortion.  I'm not sure what your options are on Mac. If someone else doesn't come along with suggestions for Mac, then Googling "'Premiere Pro" mac fisheye GoPro" yields some promising hits.

  • How to convert database table into xml file

    Hi.
    How to convert database table into XML file in Oracle HTML DB.
    Please let me know.
    Thanks.

    This not really a specific APEX question... but I search the database forum and found this thread which I think will help
    Exporting Oracle table to XML
    If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
    http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
    Hope this helps
    Chris

  • I have just installed the Firefox update version 3.6.10. But the menu features in the Indonesian language. How can I change it into English.

    I have just installed the Firefox update version 3.6.10. But the menu features are in the Indonesian language. How can I change it into English.

    Download the English version of 3.6.16 from here and install it over your current version.
    http://www.mozilla.com/en-US/firefox/all-older.html

  • How to run insert/update/delete from CDC Change table to target using OWB

    I am planning to set up CDC and publish CDC change table as source data into to OWB. I have come across where I am confused how to apply changes from CDC change table to target database using OWB. For i.e. change tables is containing information like
    operation$, cscn$,commit_timestamp$,xidusn$,....,list of column name
    D,12323223,8/28/2008 1:44:32PM,24,.....,list of column value that have to be deleted from target
    UO,12323224,8/28/2008 1:45:23PM,24,.....,list of column value that have to be updated in target.
    Please advice or give me some hint. Thank you.

    Hi,
    you can wait for 11gR2 with CDC integration or build most of the code outside the owb. To use CDC you must do this things (http://www.oracle.com/technology/oramag/oracle/03-nov/o63tech_bi.html):
    1. Identify the source tables.
    2. Set up a publisher.
    3. Create change tables.
    4. Set up a subscriber.
    5. Subscribe to the source tables, and activate the subscription.
    6. Set up the CDC window.
    7. Prepare a subscriber view.
    8. Access data from the change tables.
    9. Drop the subscriber view, and purge the CDC window.
    10. Repeat steps 6 through 9 to see new data.
    You can do only a few of this inside owb, most of it must be done outside.
    Regards,
    Detlef

  • Can I Transform tables into CSS or other formats?

    Hi.
    I've got a big site that was created in GoLive. All the pages make  extensive use of tables due to the way GoLive worked its wysiwyg  layouts.
    I'm not a programmer but I did know how to create decent looking pages  that way. Now I've got DW and want to make changes to the pages. Now  these pages all look like tables and I can't just drag and drop to move  things around.
    Is there some way in DW to change all these tables into a form where I  can manipulated them easily? I'm just learning about CSS. Is that the  way to go?
    Of course any new pages I'll create with CSS, but I still need to work with lots of these older pages.
    Thanks.

    Start your new projects with pre-built CSS Layouts.  You can learn a great deal from reading comments in the source code.
    PVII CSS Layouts - Rock solid.  Thoroughly tested to perform well in all browsers.
    http://www.projectseven.com/products/index.htm
    Dreamweaver CSS Templates for beginners
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html
    New DW Starter Pages --
    http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
    Ultimate Multi-Column Layouts -
    http://matthewjamestaylor.com/blog/ultimate-multi-column-liquid-layouts-em-and-pixel-width s
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Can we change the web.xml file name???????

    can we change the name web.xml and struts-config.xml file to other name.....if yes, then how..........

    you can change the name of struts-congig.xml file
    and change the strut-config file name in web.xml also.
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>And you also try rename the file web.xml and run the application and check what is happening...

  • Can i change the database connections through MAXL Scripts?

    Hi,
    just want to know whether i can change the database connections through MAXL Scripts. i am using essbase 9.3.1.

    Hi John,
    I have built my rulefile by connecting to a database & now i want to change the database connections. I know i can change the database connections through frontend. ( File--> open file). I want to know whether i can change the database connections by writing any MAXL Scripts.

  • How can I change imassage into regular sms on one of my contacts-sms do not reach my contact

    Somehow when I try to send sms to one of my contacts it changes into imassage, it seems that massage reaches the contact but he does not get anything I am sending. Maybe it has something to do with Icloud that I once tried and cancelled. Please, help. I just tried to send regular sms to the same contact (happy that my Iphone itself changed imassage into regular sms) and sms does not go through. What should I do??

    just send the iMessage, then touch and hold the blue buble for a second, it will pop up "send as text messege" touch it, and it will switch to text message

Maybe you are looking for

  • Error code 8103010d appear on my lumia 920!!

    so happy to get this handset!!! but there are few problems with it!! can someone help me out plz!! 1st the battery life is so short! i got only 13 hours when i have 100% barttery  2nd is the internet sharing doesnot work!! my iphone 4 can connect the

  • Problem with populating exit variable

    Hi, Im reposting this thread which is already in another section. I have a requirement as follows: There are 2 info objects for Start& End Periods of project. There is another Keyfigure(number of months) which is populated by calculating the differen

  • Recreating the target.xml file in oracle_home/sysman/emd in windows7

    Hi All, My sysman user got expired and I was trying to create the new password for the user.I am using oracle 11.2.0 in windows 7 OS. I was following the steps in the http://thetendjee.wordpress.com/2006/07/19/changing-sysman-and-dbsnmp-passwords-it-

  • HT4527 My Home Sharing isn't working.

    Both of my computers are authorized and online, but the Home Sharing tab still doesn't show up. How can I fix this?

  • OS 9 installer won't open

    I'm trying to install OS 9 so I can run an old program in the Classic environment. When I try to open the "Install Mac OS 9 System Support" icon, I get the following message: Open Failed Can't open "Mac OS 9 System Support Installer.mpkg". I am using