table (cast - invalid data type problem

Hi all

Baseline scenario:

--------------------------
PACKAGE
--------------------------
create or replace
PACKAGE C2_PAYMENT_DOC IS

Bin_array TYPE TABLE IS NUMBER
INDEX OF DIRECTORY;

FUNCTION test_fun (l_doc_id IN integer) RETURN bin_array;
--------------------------
PACKAGE_BODY
--------------------------
create or replace
package C2_PAYMENT_DOC as body

Bin_array test_fun (l_doc_id-IN integer) FUNCTION RETURNS IS
l_gross bin_array;
Start
c2_purchase_invoice.get_inv_gross_amount (l_doc_id, l_gross (1));
Return l_gross;
end;
END;
--------------------------
QUERY
--------------------------
Select * from Table (Cast (c2_payment_doc.test_fun (1) as bin_array));

The query result is ORA-00902: invalid data type
How can I make the valid select statement?
Thanks in advance,
Bartek

You cannot use local collection types in SQL. You must create a bin_array of type like nested SQL table type. In addition, depending on the version you will not cast:

SQL> CREATE OR REPLACE
  2    TYPE bin_array
  3      AS TABLE OF NUMBER
  4  /

Type created.

SQL>  create or replace
  2   PACKAGE C2_PAYMENT_DOC IS
  3  FUNCTION test_fun(l_doc_id IN integer) RETURN bin_array;
  4  end;
  5  /

Package created.

SQL> create or replace
  2  package body C2_PAYMENT_DOC as
  3
  4  FUNCTION test_fun (l_doc_id IN integer) RETURN bin_array IS
  5  l_gross bin_array := bin_array();
  6  begin
  7      l_gross.extend;
  8      l_gross(1) := l_doc_id;
  9  return l_gross;
 10  end;
 11  END;
 12  /

Package body created.

SQL> select * from Table(Cast(c2_payment_doc.test_fun(1) As bin_array));

COLUMN_VALUE
------------
           1

SQL> select * from Table(c2_payment_doc.test_fun(1))
  2  /

COLUMN_VALUE
------------
           1

SQL> 

SY.

Tags: Database

Similar Questions

  • table font PL/SQL: ORA-00902: invalid data type

    I m is

    PL/SQL: ORA-00902: invalid data type

    error in


    OPEN FOR PPymtCur
    SELECT *.
    TABLE (CAST (up_gap_tra_reports.myArray AS traArray));

    in my up_gap_tra_reports package.

    CREATE OR REPLACE PACKAGE GAPSDVEL.up_gap_tra_reports
    AS

    TraRecord RECORD TYPE IS
    (
    group1StudEnrol NUMBER (6.1).
    group2StudEnrol NUMBER (6.1).
    pymtAmt gap_payment.NET_AMT%TYPE
    );


    TYPE traArray IS TABLE OF THE traRecord;
    myArray traArray: = traArray();

    END up_gap_tra_reports;

    I have alreay hv declared of type traArray.

    pls help me solve this problem.

    Meghna wrote:
    is it possible to use the collection pl/sql in SQL or refcur without creating it because I'm not able to create the type of database.

    The only way I know is function in pipeline:

    create or replace
      package pkg1
        is
          type traRecord
            is record(
                      ename emp.ename%type,
                      sal   emp.sal%type
                     );
          TYPE traArray IS TABLE OF traRecord;
          function f1
            return traArray
            pipelined;
    end;
    /
    create or replace
      package body pkg1
        is
        function f1
            return traArray
            pipelined
          is
              v_rec traRecord;
          begin
              v_rec.ename := 'Sam';
              v_rec.sal := 1000;
              pipe row(v_rec);
              v_rec.ename := 'John';
              v_rec.sal := 1500;
              pipe row(v_rec);
              v_rec.ename := 'Mary';
              v_rec.sal := 2000;
              pipe row(v_rec);
              return;
        end;
    end;
    /
    

    Now, you can:

    SQL> select * from table(pkg1.f1)
      2  /
    
    ENAME             SAL
    ---------- ----------
    Sam              1000
    John             1500
    Mary             2000
    
    SQL>
    

    Don't forget, it will create the generated system types:

    SQL> select type_name from user_types
      2  /
    
    TYPE_NAME
    ------------------------------
    SYS_PLSQL_73305_9_1
    SYS_PLSQL_73305_DUMMY_1
    SYS_PLSQL_73305_34_1
    
    SQL> desc SYS_PLSQL_73305_9_1
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ENAME                                              VARCHAR2(10)
     SAL                                                NUMBER(7,2)
    
    SQL> desc SYS_PLSQL_73305_DUMMY_1
     SYS_PLSQL_73305_DUMMY_1 TABLE OF NUMBER
    
    SQL> desc SYS_PLSQL_73305_34_1
     SYS_PLSQL_73305_34_1 TABLE OF SYS_PLSQL_73305_9_1
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     ENAME                                              VARCHAR2(10)
     SAL                                                NUMBER(7,2)
    
    SQL> 
    

    SY.

  • From a function table: invalid data type error

    Hello

    I'm a ORA-00902: invalid data type error when I try to call the function from a select statement below. Here, I am leaving an array from a function.
    create or replace package pkg10
    as
    
    type tabletype1 is table of table1%rowtype
    index by binary_integer;
    
    function func1 return tabletype1;
    
    end pkg10;
    create or replace package body pkg10
    as
    
    function func1 return tabletype1 
    is
        v_tab1 tabletype1;
        idx integer;
    begin 
    
        idx := 1;
        
        for i in (select * from table1)
        loop
            v_tab1(idx).name1 := i.name1;
            v_tab1(idx).key := i.key;
            idx := idx+1;
            
        end loop;
    
    return v_tab1; 
    
    end func1; 
    
    end pkg10;
    select * from table(pkg10.func1);
    Please point out to me where I'm wrong.

    Thank you

    Sathya Vamsi says:
    Hello

    I'm a ORA-00902: invalid data type error when I try to call the function from a select statement below. Here, I am leaving an array from a function.

    create or replace package pkg10
    as
    
    type tabletype1 is table of table1%rowtype
    index by binary_integer;
    
    function func1 return tabletype1;
    
    end pkg10;
    
    create or replace package body pkg10
    as
    
    function func1 return tabletype1
    is
    v_tab1 tabletype1;
    idx integer;
    begin 
    
    idx := 1;
    
    for i in (select * from table1)
    loop
    v_tab1(idx).name1 := i.name1;
    v_tab1(idx).key := i.key;
    idx := idx+1;
    
    end loop;
    
    return v_tab1; 
    
    end func1; 
    
    end pkg10;
    
    select * from table(pkg10.func1);
    

    Please point out to me where I'm wrong.

    Thank you

    you try to use a data type of PL/SQL as part of an SQL statement. is NOT authorized.

  • Creating a table: invalid data type

    Hello

    I want to create two tables, which is why the following script:

    create table wine cellars
    (winecellarname varchar2 (50) primary key,)
    location varchar2 (50).
    owner varchar2 (50).
    Phone varchar2 (50).
    Museum char(1),
    BLOB of logo
    );


    create table wines
    (winetype, varchar2 (50))
    winecathegory varchar2 (50).
    year number 4.
    winecellarname varchar2 (50).
    VARCHAR2 (50) of origin;
    primary key (winetype, winecathegory, year, winecellarname).
    update the foreign key (winecellarname) winecellarname references on Delete on cascade
    );

    But in line 13 of the script, which is the line winetype varchar2 (50), gives the text following error-> invalid data type

    Everyone knows that is the cause? I used Toad as a client to manage the script and Oracle 10 g as a server.

    Thank you. concerning

    Then, when you create tables in Oracle, referencing foreign key, you don t need to use on the update clause to maintain the reference to integrity? This is valid for MySQL Server?

    not sure that your average, but you have to update... use only on the deletion clause.
    read reference to url... I told you

  • I get an error-invalid data type

    DECLARE
    CURSOR med_rec_cur
    IS
    SELECT *.
    OF temp_records_med;

    p_success NUMBER;
    strQuery VARCHAR2 (10000);
    v_count NUMBER;
    v_filename temp_records_med.filename%TYPE;

    TYPE med_rec_tab IS TABLE OF temp_records_med % ROWTYPE;

    ErrNum NUMBER;

    Slno_tab TYPE IS a TABLE OF VARCHAR2 (100);

    v_med_rec_tab med_rec_tab;
    dml_errors EXCEPTION;
    v_slno NUMBER;
    v_all_slno VARCHAR2 (1000);
    v_slno_tab slno_tab;
    tba_slno temp_records_med.slno%type;

    BEGIN
    OPEN med_rec_cur.

    LOOP
    BEGIN
    EXTRACTION med_rec_cur
    LOOSE COLLECTION v_med_rec_tab LIMIT 1000;

    FORALL I IN 1... v_med_rec_tab. COUNT SAVE EXCEPTIONS
    INSERT INTO meddetail
    VALUES v_med_rec_tab (i)
    RETURN slno BULK COLLECT INTO v_slno_tab;

    EXCEPTION
    WHEN dml_errors
    THEN
    v_all_slno: = ', '. To_char (v_all_slno);
    END;

    EXIT WHEN med_rec_cur % NOTFOUND;
    END LOOP;

    CLOSE Med_rec_cur;

    INSERT INTO BOSSDRAGON - INVALID DATA TYPE
    SELECT * FROM TEMP_RECORDS_MED WHERE SLNO NOT IN (SELECT tba_slno FROM)
    (TABLE (CAST (v_slno_tab AS slno_tab) tba_slno))) ;

    END;

    Published by: user8731258 on Sep 6, 2010 23:14

    Casting will not change the fact that you have a local collection type in a SQL statement, which is not allowed. You can create a stand-alone type with CREATE TYPE? Or use something like SYS. DBMS_DEBUG_VC2COLL that is already defined.

    You don't need a CAST explicitly in the TABLE expressions after around Oracle 8i.

  • Invalid data type

    Hello

    I have the following tables:


    create table wine cellars
    (winecellarname varchar2 (50) primary key,)
    location varchar2 (50).
    owner varchar2 (50).
    Phone varchar2 (50).
    Museum char(1),
    BLOB of logo
    );

    create table wines
    (winetype, varchar2 (50))
    winecathegory varchar2 (50).
    year number 4.
    winecellarname varchar2 (50).
    VARCHAR2 (50) of origin;
    primary key (winetype, winecathegory, year, winecellarname).
    Foreign key (winecellarname) references winecellarname on delete cascade
    );

    But in the line which belongs to the sentence: create vdt TOAD gives me the following error: error on line 13. ORA-00902: invalid data Type

    I don't understand the reason for this error and I can fix it.

    Thank you. Concerning

    Found the problem:

    create table vino
    ( tipovino varchar2(50),
    categoriavino varchar2(50),
    anovendimia number(4),
    nombrebodega varchar2(50),
    denominacionorigen varchar2(50),
    precio/lproduc number(5),
    litrosproduc number(10),
    precio/lpublico number(5),
    primary key (tipovino,categoriavino,anovendimia,nombrebodega),
    foreign key (nombrebodega) references bodega on delete cascade
    )
    /
    

    ' Precio/lproduc' and "price/lproduc" columns contain a ' / ', which is not legal!

    Try this:

    create table vino
    ( tipovino varchar2(50),
    categoriavino varchar2(50),
    anovendimia number(4),
    nombrebodega varchar2(50),
    denominacionorigen varchar2(50),
    precio_lproduc number(5),
    litrosproduc number(10),
    precio_lpublico number(5),
    primary key (tipovino,categoriavino,anovendimia,nombrebodega),
    foreign key (nombrebodega) references bodega on delete cascade
    )
    /
    

    and it works perfectly. (See where I replaced ' / ' by '_' in two of these column names?)

    Hope that helps,

    -Mark

    PS The reminder! Don't forget to close the issue and awarded points accordingly.

  • ORA-00902: invalid data type on xmltable

    Hello

    I learn XMLTABLE but not able to run the following queries,

    with xml11g as
    (
    select '<?xml version="1.0"?>
    <purchaseorder orderdate="1999-10-20">
      <shipto country="us">
        <name>alice smith</name>
        <street>123 maple street</street>
        <city>mill valley</city>
        <state>ca</state>
        <zip>90952</zip>
      </shipto>
      <billto country="us">
        <name>robert smith</name>
        <street>8 oak avenue</street>
        <city>old town</city>
        <state>pa</state>
        <zip>95819</zip>
      </billto>
      <comment>hurry, my lawn is going wild!</comment>
      <items>
        <item partnum="872-aa">
          <productname>lawnmower</productname>
          <quantity>1</quantity>
          <usprice>148.95</usprice>
          <comment>confirm this is electric</comment>
        </item>
        <item partnum="926-aa">
          <productname>baby monitor</productname>
          <quantity>1</quantity>
          <usprice>39.98</usprice>
          <shipdate>1999-05-21</shipdate>
        </item>
      </items>
    </purchaseorder>' myxml from dual
    )
    select s.*, b.*
    from xml11g t,
      xmltable ('/purchaseorder' passing
        xmlparse(document t.myxml)
        columns
          "shipto" xml,
          "billto" xml
        ) x,
        xmltable ('/shipto' passing x."shipto"
          columns
            "name" char(20),
            "street" char(40),
            "city" char(40),
            "state" char(2),
            "zip" number(10)
        ) s,
        xmltable ('/billto' passing x."billto"
          columns
            "name" char(20),
            "street" char(40),
            "city" char(40),
            "state" char(2),
            "zip" number(10)
        ) b;
    
    

    It is showing me special suite

    < zip > 90952 < / zip >

    *

    ERROR on line 10:

    ORA-00902: invalid data type

    Please guide me what I'm missing here.

    Thanks and greetings

    Alexander gelin

    For me the (slightly modified) works:

    [sql]

    with xml11g as
    (
    Select ' 
     
       
        Alice Smith 
        123 maple Street 
        Mill Valley 
        CA 
        90952 
       
       
        Robert Smith 
        8 Oak avenue 
        old town 
        PA 
        95819 
       
      Hurry, my lawn is going wild
    !                 lawn mower        1        148.95        confirm this is electric                    baby monitor        1        39.98        1999-05-21            "double myxml. ) Select *. of xml11g t.   XMLTable ('/ purchaseorder' by the way)     xmlParse (document t.myxml)     columns       "shipto" XMLtype,       "billto" XMLtype     )     x,     XMLTable ("' / shipto' passing x." ShipTo")       columns         'name' char (20)         , 40 "Street."         'city' 40,         'State' (2) tank.         "zip" INTEGER     + 1 ,     XMLTable ("' / billto' passing x." BillTo")       columns         'name' char (20),         40 "Street."         'city' 40,         'State' (2) tank.         "zip" INTEGER    

    ) b ;

    [SQL]

  • the selection of all colomns_names of a table, with their data types...

    HI :)

    I would like to know, how to select in SQL for all the names of columns in a table with their data types so that I get something like this:

    Table 1: table_name

    the ID of the column has the NUMBER data type
    the name of the column has Datatype Varchar2
    *....*

    --------------------------------------------------------------

    Table 2: table_name

    the check in the column has the NUMBER data type
    the air of the column has Datatype Varchar2
    *....*


    and it must be for all the tables that I own!...

    P. S: I'm trying to do this with java, so it s would be enough if you just tell me how to select all tables_names with all their colums_names and all their data types!...

    Thanks :)



    I've heard this can be done with USER_TABLES... but I have no idea how: (...)

    Edited by: user8865125 the 17.05.2011 12:22

    Hello

    USER_TAB_COLUMNS data dictionary view has a row for each column of each table in your schema. The columns TABLE_NAME, COLUMN_NAME and DATA_TYPE contains all the information you need.
    Another view of data, USER_TABLES dictionary, can be useful, too. He has a line of table pre.

  • ORA-00902: invalid data type

    Hello
    What is the problem with my NUMBER data type:
    SQL> create table sale (purchase-no NUMBER (9) CONSTRAINT sale-purchase-no-pk PR
    IMARY KEY , costumer-id NUMBER (9) CONSTRAINT sale-customer-id-nk NOT NULL);
    create table sale (purchase-no NUMBER (9) CONSTRAINT sale-purchase-no-pk PRIMARY
     KEY , costumer-id NUMBER (9) CONSTRAINT sale-customer-id-nk NOT NULL)
                               *
    ERROR at line 1:
    ORA-00902: invalid datatype
    Thank you.

    Your column and constraint names have traits that are not allowed in the names of identifiers.

    Try using instead underscore traits.

  • Change the length of a Table column (CHAR data type)

    Hi gurus,

    SQL > select * from version $ v

    BANNER

    ----------------------------------------------------------------

    Oracle Database 10g Release 10.2.0.3.0 - 64 bit Production

    PL/SQL version 10.2.0.3.0 - Production

    CORE Production 10.2.0.3.0

    AMT for Linux: release 10.2.0.3.0 - Production

    NLSRTL Version 10.2.0.3.0 - Production

    I need to increase the length of a CHAR of a table data type column (currently it's tank (3) and you want to change to char (4)). Here are more details on the table:-

    • Contains more than 20 million lines.
    • Table contains several indexes.
    • Table is referenced by several tables (about 60 tables) and it refers to several tables (about 3)
    • Table has 4 complex triggers. Triggers call procedures and packages.

    What I've tried so far


    1 disabled all triggers and ran ALTER statement to increase the length. It took hours and did not finish in a reasonable amount of time, even if no error, but it took more than 12 hours.

    2 tried DBMS_REDEFINITION package but it does not work with the standard version of Oracle 10 g.

    I think to try next

    I think same Optics:

    Say my name of the existing table is OLD_T1 where the length of column need to increase

    -Create a copy (with increased column length) table of OLD_T1, Say NEW_T1

    -Move data from in OLD_T1 to the new table NEW_T1

    -Lower OLD_T1 (or rename it to OLD_T1_TMP)

    -Rename NEW_T1 to OLD_T1

    -Create all indexes, triggers, constraints etc..

    I wish to confirm, if my approach is correct? Or someone has a better idea to do this?

    Please note: I know that the CHAR data type gives the problem but it is an old system and I don't have authority to change the design of database.

    Appreciate any comment/suggestion

    Thanks in advance

    > I mean, can any application break if it depends on fixed-length?

    Yes, because the code can be expected completed on the right areas.

  • cfgrid / cfgridupdate error with an invalid data type

    I have a problem using cfgrid controls.

    I get the following error message:
    "Error casting an object of type by an incompatible type. This usually indicates an error in programming in Java, although it could also mean that you tried to use a foreign object in a different way, that it was designed. »

    The error occurs when I run this code:

    < IsDefined ("form.gridEntered") cfif >
    < cfgridupdate grid = "FirstGrid" dataSource = "" #dsn # "Keyonly ="true"tableName ="tblManager">"
    < / cfif >

    It connects to a mySQL 4.1 database.

    I think that the problem is to do with a field, I added called 'Active' of the INT data type (1). I use that as a Boolean value as far as I know, is the nearest equivalent in mySQL.

    In my < cfgrid > I've added the next column.

    < cfgridcolumn name = 'Active' type = 'boolean' display = "Yes" width = "40" header = "On" "BOLD" = "true" / >

    That shows a box and that's the look I want to reach on the grid.
    I think that this causes Java error. What should I do to allow the submission to the grid of this type of data, please?

    Thank you for your time and your help.

    To answer my own question on that...
    cfgridupdate wasn't working so I wrote a regular block of code to make the necessary changes when you submit a grid.

  • Incompatible data type problem in the ADF

    Hello

    I'm new to ADF. I'm writing a logic in the implementation of the entity class.
    The logic contains below two lines.

    Integer itemQty = row.getQuantity ();
    Number Qty = (Number) (itemQty);

    However when compiling, error comes which says 'incompatible data types' that is the integer and the number are not compatible.
    Please let me how can know I convert an integer in Number type.

    Thank you
    Anuj
    Integer  itemQty = row.getQuantity();
    oracle.jbo.domain.Number n= null;
        try
        {
          n = new oracle.jbo.domain.Number(itemQty);
        }
        catch (SQLException e)
        {
          //handle the exception here.
        }  
    

    But why do you need to cast to oracle.jbo.domain.Number?

  • ORA-00902 error invalid data type when you use CAST in the PL/SQL Package

    I'm getting ORA - 00902 Datatype not valid error when you use cast in getEmpValues (see code below) method in the package I created.
    I don't know what is the cause of the error. Any help would be appreciated



    CREATE OR REPLACE PACKAGE TEST. TEST_PKG AS

    ARRAY TYPE MyTableType IS NUMBER;
    TYPE REF_CURSOR IS REF CURSOR;

    FUNCTION str2tbl (p_str IN VARCHAR2)
    RETURN myTableType;

    PROCEDURE getContactValues (p_ParameterString IN VARCHAR2, p_Cursor1 to REF_CURSOR);

    END TEST_PKG;



    CREATE OR REPLACE PACKAGE BODY TEST. TEST_PKG AS

    FUNCTION str2tbl (p_str IN VARCHAR2)
    RETURN myTableType
    AS
    l_str LONG default p_str | ',';
    l_n NUMBER;
    myTableType l_data: = myTabletype();

    BEGIN
    LOOP

    l_n: = INSTR (l_str, ",");
    WHEN the OUTPUT (nvl(l_n,0) = 0);
    l_data.extend;
    l_data (l_data.count): = ltrim (rtrim (substr(l_str,1,l_n-1)));
    l_str: = substr (l_str, l_n + 1);
    END LOOP;
    L_data return;
    END;

    /*
    p_ParameterString is a string of the form 3, 6, 8, 9'
    */

    PROCEDURE getEmpValues (p_ParameterString IN VARCHAR2, p_Cursor1 to REF_CURSOR)
    AS


    BEGIN


    OPEN FOR P_Cursor1

    SELECT *.
    FROM EMP

    WHERE EMP_ID IN (SELECT *)
    OF THE (SELECT CAST (TEST.) (TEST_PKG.str2tbl (p_ParameterString) as myTableType) double)

    );
    END getEmpValues;

    END TEST_PKG;

    ARRAY TYPE MyTableType IS NUMBER;

    This type must be created outside of the package as a SQL type if it must be used in a select statement.

  • View cube - data Type problem

    Hello

    I have a cube with 3 measures everything from type NUMBER because they are the Source.

    I imported the and in the target table appear exactly as they are to the source (for example, 1.234, 2.324,...)

    But when I discovered through the Cube Data Viewer, it shows me just a whole number (for example, 1, 3, 2) with no part of desimal.

    What can be the problem, please guide me?

    Thank you
    RF

    Hello

    If you select the data cells on the Bulletin Board of cube and click the toolbar with the 00 and arrow from left to right, this will add a decimal point, if you keep clicking top will add another etc.

    See you soon
    David

  • Data from table in XML data type

    Hi friends,

    I have data of type table, and I want that in XML to send through the web service.

    could you please suggest any api available in Oracle 11 g (PLSQL) for this or any method to produce.

    Help, please.

    Kind regards

    Tom

    For example, if MY_FUNCTION() returns a MAJOR_LINE_TABLE_TYPE collection type, you can do something like this:

    Select xmlserialize (document

    XmlElement ("ROOT"

    xmlagg (xmltype (t.object_value))

    )

    dash

    ) as a result

    table (my_function ()) t;

    It will generate a canonical XML document right out of the returned collection:

    
      
        1
        Item1
        Path1
        6
        
          
            1
            Item1
            4
            
              
                07/03/15
                08/03/15
                1
              
              
                06/03/15
                08/03/15
                2
              
            
          
          
            2
            Item2
            5
            
              
                07/03/15
                08/03/15
                1
              
              
                06/03/15
                08/03/15
                2
              
            
          
        
        
          
            1
            Item1
            Path1
            2
            
              
                1
                Item1
                4
                
                  
                    07/03/15
                    08/03/15
                    1
                  
                  
                    06/03/15
                    08/03/15
                    2
                  
                
              
              
                2
                Item2
                5
                
                  
                    07/03/15
                    08/03/15
                    1
                  
                  
                    06/03/15
                    08/03/15
                    2
                  
                
              
            
            
              
                1
                Item1
                Path1
                5
              
              
                2
                Item2
                Path2
                6
              
              
                3
                Item3
                Path3
                7
              
            
          
          
            2
            Item2
            Path2
            3
            
              
                1
                Item1
                4
                
                  
                    07/03/15
                    08/03/15
                    1
                  
                  
                    06/03/15
                    08/03/15
                    2
                  
                
              
              
                2
                Item2
                5
                
                  
                    07/03/15
                    08/03/15
                    1
                  
                  
                    06/03/15
                    08/03/15
                    2
                  
                
              
            
            
              
                1
                Item1
                Path1
                5
              
              
                2
                Item2
                Path2
                6
              
              
                3
                Item3
                Path3
                7
              
            
          
        
      
      
        2
        Item2
        Path2
        3
        
          
            1
            Item1
            4
            
              
                07/03/15
                08/03/15
                1
              
              
                06/03/15
                08/03/15
                2
              
            
          
          
            2
            Item2
            5
            
              
                07/03/15
                08/03/15
                1
              
              
                06/03/15
                08/03/15
                2
              
            
          
        
        
          
            1
            Item1
            Path1
            2
            
              
                1
                Item1
                4
                
                  
                    07/03/15
                    08/03/15
                    1
                  
                  
                    06/03/15
                    08/03/15
                    2
                  
                
              
              
                2
                Item2
                5
                
                  
                    07/03/15
                    08/03/15
                    1
                  
                  
                    06/03/15
                    08/03/15
                    2
                  
                
              
            
            
              
                1
                Item1
                Path1
                5
              
              
                2
                Item2
                Path2
                6
              
              
                3
                Item3
                Path3
                7
              
            
          
          
            2
            Item2
            Path2
            3
            
              
                1
                Item1
                4
                
                  
                    07/03/15
                    08/03/15
                    1
                  
                  
                    06/03/15
                    08/03/15
                    2
                  
                
              
              
                2
                Item2
                5
                
                  
                    07/03/15
                    08/03/15
                    1
                  
                  
                    06/03/15
                    08/03/15
                    2
                  
                
              
            
            
              
                1
                Item1
                Path1
                5
              
              
                2
                Item2
                Path2
                6
              
              
                3
                Item3
                Path3
                7
              
            
          
        
      
    
    

    If this requires a minimum of effort, the drawback is that you don't have much control over the generated structure.

    Optionally, apply an XSLT stylesheet to transform into the required shape.

    The other option is to turn back the hierarchy of objects to relational data and use the SQL/XML functions to generate the XML content.

    If you use these objects only in order to generate the XML, then you can also bypass it entirely and build the XML directly in the base tables, it will be much more effective.

Maybe you are looking for

  • How do you post something in google?

    to transalate into English by postng chinees it in google?

  • Satellite C55 - Touchpad no longer works

    Hello The touchpad on my C55 no longer works. After you restart the touchpad works until I signon to Windows. After this, all functions will stop. A few days ago, I think that some Windows updates have been launched. Is that what someone else has had

  • Media Center does not work on Equium A100-147

    HelloI have a little problem with my media center. It used to work fine, but recently, I decided to wipe the hard drive. I used the boot disk to reinstall windows media center edition 2005. However, when you try to load the Media Center, I get the er

  • No internet after updating 2016-001

    After the recent update (2016-001) for Yosemite 10.10.5 I can't access certain sites. I use the connection cable to the router (192.168.1.1). It says not available. Diagnosis of Internet, said ok. I also have Windows in VirtualBox. From there on, I c

  • invalid access to memory

    I get an error indicating there was a problem invalid starting C:users\Kim\appdata\local\temp\charsmon.dll access to memory location. This box opens at startup. Anyone has any ideas how to fix this? Thank you