Grouping data in xml file problem

Hi all

Here is an example of xml file used as input source in my BEEP stand-alone report:

rowset <>
< SAMPLE_ROW >
< ID > 1234 / < ID >
< Code > < CODE > A1
FIRST YEAR < TEXT > < / TEXT >
B1 < CODE > < code >
SECOND YEAR < TEXT > < / TEXT >
< / SAMPLE_ROW >
< SAMPLE_ROW >
< ID > 6789 / < ID >
< Code > < CODE > C1
THIRD YEAR < TEXT > < / TEXT >
B1 < CODE > < code >
SECOND YEAR < TEXT > < / TEXT >
< / SAMPLE_ROW >
< / LINES >


The expected output should be:

ID # 1234
Categories: A1
FIRST YEAR
B1
SECOND GRADE

ID # 6789
Categories: C1
THIRD YEAR
B1
SECOND GRADE

And design that I created is:

<? for-each-group: SAMPLE_ROW; / ID? >
ID # <? ID? >
Categories: <? CODE of? >
<? TEXT? >
<? end for each group -? >

I could only show partial result but not able to reach my desired output. Please guide.

Thank you.

Ideally, what you want is:


     
          1234
          
          A1
          FIRST YEAR
          

          
          B1
          SECOND GRADE
          

     

     
          6789
          
          C1
          THIRD YEAR
          

          
          B1
          SECOND GRADE
     

     

With this structure without having to regroup but only for each.
Your third can reorganize?

Jorge

Tags: Business Intelligence

Similar Questions

  • How to integrate the dynamic SQL generated in the data definition XML file?

    Hi all

    I have it here is the XML file that is attached to the definition of data model RTF as below. Also, I have a function that will return to create a dynamic query as shown below.

    <?xml version="1.0" encoding="UTF-8"?> 
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0"> 
    <dataQuery> 
    <sqlStatement name="Q2"> 
    <![CDATA[
    

    Hi guys,.

    I was able to solve above the requirement. It was not possible to create only from SQL dynamically. Instead, I created a procedure that would create & update (attached to the data definition) XML file dynamically for each race.

    Kind regards

    Patricia K.

  • Retrieve data from xml file

    Hello

    Consider, having more xml file

    
        

    How can I retrieve the value of the key to lonlat "36.76,3.05."

    in my qml file, I had something like

    ...
            Page {
                id: ch_loc
                Container {
    
                    //background: Color.White
                    ListView {
                        dataModel: XmlDataModel {
                            source: "LonLat.xml"
                        }
                        listItemComponents: [
                            ListItemComponent {
                            }
                        ]
                        onTriggered: {
                            //qDebug(indexPath[3]);
                            app.initiateRequest(dataModel.data(indexPath[0]))
                        }
                    }
                }
            }
    ...
    

    I'm on the right track? Need help please.

    Thank you, best regards.

    Maddin

    Hello

    OK after some reading, I thought about it.

    What I did:

    Page {
                id: ch_loc
                Container {
    
                    //background: Color.White
                    ListView {
                        dataModel: XmlDataModel {
                            source: "LonLat.xml"
                        }
                        listItemComponents: [
                            ListItemComponent {
                            }
                        ]
                        onTriggered: {
                            var selectedItem = dataModel.data(indexPath);
                            app.initiateRequest(selectedItem.value);
                        }
                    }
                }
            }
    

    Please don't quite understand. IAM does not ask for help without doing anything by myself. IAM at this new and iam from difficult to understand the whole material. For now iam happy that I understood this part.

    If this is done for me.

    Concerning

    Maddin

  • read data from xml file

    Hi all

    I have an xml file store on my bb.

    How can I read data within the tag? I think that one way is to use blackberry.find.FilterExpression (), like the example below. I don't know how... but it's okay. I will try!!

    function handleOpenedFile(fullPath, blobData) {
    
        temp = blackberry.utils.blobToString(blobData);
    
       //var NomeOperatore = blackberry.find.FilterExpression('');
    }
    
    function readPianoViaggi() {
        if (blackberry.io.file.exists(filePath)) {
            blackberry.io.file.copy(filePath, filePath2);
            blackberry.io.file.readFile(filePath, handleOpenedFile);
    
        }
    }
    

    my question is: I can read data within the tag using an operation such as

    itemDescription = temp.getElementsByTagName ('NomeOperatore') var [0].firstChild.data or something similar?

    Thank you

    You would do something like the following... I don't know if my syntax is correct

    function readFile() {
      blackberry.io.file.readFile("file:///store/home/user/sample.xml",handleOpenedFile);
    }
    
    function handleOpenedFile(fullPath, blobData)
    {
      var xmlString = blackberry.utils.blobToString(blobData, null);
      var parser = new DOMParser();
      var doc = parser.parseFromString(xmlString, "text/xml");
    
      var itemDescription = doc.getElementsByTagName('NomeOperatore')[0].firstChild.data;
    }
    
  • Export a Final Cut Pro XML file problem any translation problem

    When I export the XML pro final cut, there is always a problem of translation like this "Transition... not translated, chained <>used instead."

    Most of type transition can cause translation problems, except the wipe and cross dissolve.

    Is there any body know the reason? Is it OK?

    Also, I use the trial version of cs5

    Hey Ani_,.

    I work for a long time with Adobe products and generally when you encounter an error that has nothing to with an XML file export problem its due to such things as the effects you may have added in, color correction, bland Crusaders or any type of video transitions between clips. Don't forget that your workflow must be

    Import your videos into Premiere Pro
    Name your clips (help to find things later)
    Place the clips on the timeline in the order you want (DO CUP that DO not add anything, transitions effects color nothing)
    Then once all of your clips are placed on the timeline in your voucher order you then EXPORT > Final Cut Pro XML

    Now you can put this in other programs for adjustment of colors, or whatever it is you do.  You will find there is no error on export.

    Once your fact is do what you do for the clips in another program (for example: the Divinci Resolve color adjustment) you can then export to your main project, and then add your effects and transitions.

  • Extract data from xml file item

    I inserted all data from an xml file into an xml table in the database (after creating the directory and getclobdocument function)
    with

    INSERT INTO TEST_XML
    SELECT (XMLTYPE (getCLOBDocument ('MXMLF.xml'))) FROM DUAL;

    Now how to extract the individual item in the relational table my data in the xml table is something like the following.

    rowset <>
    < TransmissionHeader >
    < TransmissionDateTime > 2008 - 12 - 04T 09: 30:47 - 05:00 < / TransmissionDateTime >
    IATA:ISXMLInvoiceV3.1 < version > < / Version >
    < IssuingOrganizationID > 111 < / IssuingOrganizationID >
    < BillingCategory > various < / BillingCategory >
    < / TransmissionHeader >
    < invoice >
    < InvoiceHeader >
    < InvoiceNumber > 182792000 < / InvoiceNumber >
    < invoiceDate > 2007 - 12 - 19 < / InvoiceDate >
    Bill < InvoiceType > < / InvoiceType >
    < LocationCode > EWR < / LocationCode >
    Engineering of < ChargeCategory > < / ChargeCategory >
    < SellerOrganization >
    < > 111 OrganizationID < / OrganizationID >
    < OrganizationDesignator > ZZ < / OrganizationDesignator >
    Zed airlines < Nomorganisation1 > < / Nomorganisation1 >
    < TaxRegistrationID > 111ABC111 < / TaxRegistrationID >
    < CompanyRegistrationID > ABC111ABC < / CompanyRegistrationID >
    Patrick < ContactName > < / ContactName >
    < address >
    < > 111, Zed AddressLine1 headquarters < / AddressLine1 >
    Montreal < CityName > < / Nom_ville >
    < CountryCode > CA < / CountryCode >
    Canada < CountryName > < / CountryName >
    < code postal > 110011 < / code >
    < / address >
    < / SellerOrganization >
    < BuyerOrganization >
    < > 222 OrganizationID < / OrganizationID >
    < OrganizationDesignator > GG < / OrganizationDesignator >
    < Nomorganisation1 > Globe Airlines < / Nomorganisation1 >
    < TaxRegistrationID > GB22200222 < / TaxRegistrationID >
    < CompanyRegistrationID > Go 222 222 < / CompanyRegistrationID >
    George < ContactName > < / ContactName >
    < address >
    < AddressLine1 > 222, Globe headquarters < / AddressLine1 >
    London < CityName > < / Nom_ville >
    < CountryCode > GB < / CountryCode >
    England < CountryName > < / CountryName >
    < code postal > 220022 < / code >
    < / address >
    < / BuyerOrganization >
    < ConditionsPaiement >
    < CurrencyCode > $ < / CurrencyCode >
    < SettlementMonthPeriod > 071203 < / SettlementMonthPeriod >
    < SettlementMethod > I < / SettlementMethod >
    < / ConditionsPaiement >
    < ISDetails >
    < DigitalSignatureFlag > N < / DigitalSignatureFlag >
    < / ISDetails >
    < setting >
    < AttachmentIndicatorOriginal > Y < / AttachmentIndicatorOriginal >
    < / fixing >
    < / InvoiceHeader >
    < LineItem >
    < LineItemNumber > 1 < / LineItemNumber >
    < ChargeCode > MRO repairs and review < / ChargeCode >
    < description > package for unique maintenance work. Water VAVLE drain compl. P/N 9350022 < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice SF = "1" > 300,0000 < / UnitPrice >
    < ChargeAmount > 300,00 < / ChargeAmount >
    < TotalNetAmount > 300,00 < / TotalNetAmount >
    < / LineItem >
    < LineItem >
    < LineItemNumber > 2 < / LineItemNumber >
    < ChargeCode > MRO repairs and review < / ChargeCode >
    < description > material consumption for the single interview. Water VAVLE drain compl. P/N 9350022, S/N FRTR013AW < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice SF = "1" > 900.0000 < / UnitPrice >
    < ChargeAmount > 900.00 < / ChargeAmount >
    < TotalAddOnChargeAmount > 180.00 < / TotalAddOnChargeAmount >
    < TotalNetAmount > 1080.00 < / TotalNetAmount >
    < / LineItem >
    < LineItemDetail >
    < DetailNumber > 1 < / DetailNumber >
    < LineItemNumber > 1 < / LineItemNumber >
    < description > package for unique maintenance work. Water VAVLE drain compl. P/N 9350022 < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 300,0000 < / UnitPrice >
    < ChargeAmount > 300,00 < / ChargeAmount >
    < TotalNetAmount > 300,00 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > 9350022 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >
    < LineItemDetail >
    < DetailNumber > 1 < / DetailNumber >
    < LineItemNumber > 2 < / LineItemNumber >
    < description > material consumption diaphragm < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 200.0000 < / UnitPrice >
    < ChargeAmount > 200.00 < / ChargeAmount >
    < AddOnCharges >
    Handling of < AddOnChargeName > < / AddOnChargeName >
    < AddOnChargePercentage > 20.00 < / AddOnChargePercentage >
    < AddOnChargeableAmount > 200.00 < / AddOnChargeableAmount >
    < AddOnChargeAmount > 40.00 < / AddOnChargeAmount >
    < / AddOnCharges >
    < TotalNetAmount > 240.00 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > 9350584 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >
    < LineItemDetail >
    < DetailNumber > 2 < / DetailNumber >
    < LineItemNumber > 2 < / LineItemNumber >
    < description > material consumption coverage < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 177.5000 < / UnitPrice >
    < ChargeAmount > 177,50 < / ChargeAmount >
    < AddOnCharges >
    Handling of < AddOnChargeName > < / AddOnChargeName >
    < AddOnChargePercentage > 20.00 < / AddOnChargePercentage >
    < AddOnChargeableAmount > 177,50 < / AddOnChargeableAmount >
    < AddOnChargeAmount > 35.50 < / AddOnChargeAmount >
    < / AddOnCharges >
    < TotalNetAmount > 213,00 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > 9350595 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >
    < LineItemDetail >
    < DetailNumber > 3 < / DetailNumber >
    < LineItemNumber > 2 < / LineItemNumber >
    Assembly of material consumption - Base < description > < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 520.0000 < / UnitPrice >
    < ChargeAmount > 520.00 < / ChargeAmount >
    < AddOnCharges >
    Handling of < AddOnChargeName > < / AddOnChargeName >
    < AddOnChargePercentage > 20.00 < / AddOnChargePercentage >
    < AddOnChargeableAmount > 520.00 < / AddOnChargeableAmount >
    < AddOnChargeAmount > 104.00 < / AddOnChargeAmount >
    < / AddOnCharges >
    < TotalNetAmount > 624,00 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > 9350598 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >
    < LineItemDetail >
    < DetailNumber > 4 < / DetailNumber >
    < LineItemNumber > 2 < / LineItemNumber >
    Packaging material consumption < description > < / Description >
    < EndDate > 2007 - 12 - 10 < / EndDate >
    < UOMCode quantity = "EA" > 1.0000 < / quantity >
    < UnitPrice > 0.0800 < / UnitPrice >
    < ChargeAmount > 0.08 < / ChargeAmount >
    < AddOnCharges >
    Handling of < AddOnChargeName > < / AddOnChargeName >
    < AddOnChargePercentage > 20.00 < / AddOnChargePercentage >
    < AddOnChargeableAmount > 0.08 < / AddOnChargeableAmount >
    < AddOnChargeAmount > 0.02 < / AddOnChargeAmount >
    < / AddOnCharges >
    < TotalNetAmount > 0.10 < / TotalNetAmount >
    < AircraftDetails >
    < AircraftRegistrationNo > DAIGS < / AircraftRegistrationNo >
    < PartNo > AS3209-009 < / PartNo >
    < / AircraftDetails >
    < / LineItemDetail >

    How now?

    Please a little help

    I tried to instead of but of no use

    The new element in the root is 'InvoiceTransmission', so replace 'Lines' with it.
    In addition, there is now a default namespace, you must declare it as well:

    SELECT x1.InvoiceNumber
         , x1.InvoiceDate
         , x1.InvoiceType
         , x1.LocationCode
         , x2.*
         , x3.*
    FROM test_xml t
       , XMLTable(
           XMLNamespaces(default 'http://www.IATA.com/IATAAviationInvoiceStandard')
         , '/InvoiceTransmission/Invoice'
           passing t.object_value
           columns InvoiceNumber   number       path 'InvoiceHeader/InvoiceNumber'
                 , InvoiceDate     date         path 'InvoiceHeader/InvoiceDate'
                 , InvoiceType     varchar2(30) path 'InvoiceHeader/InvoiceType'
                 , LocationCode    varchar2(3)  path 'InvoiceHeader/LocationCode'
                 , LineItems       xmltype      path 'LineItem'
                 , LineItemDetails xmltype      path 'LineItemDetail'
         ) x1
       , XMLTable(
           XMLNamespaces(default 'http://www.IATA.com/IATAAviationInvoiceStandard')
         , '/LineItem'
           passing x1.LineItems
           columns LineItemNumber         number        path 'LineItemNumber'
                 , ChargeCode             varchar2(80)  path 'ChargeCode'
                 , Description            varchar2(200) path 'Description'
                 , EndDate                date          path 'EndDate'
                 , Quantity               number(8,4)   path 'Quantity'
                 , Quantity_UOM           varchar2(3)   path 'Quantity/@UOMCode'
                 , UnitPrice              number(8,4)   path 'UnitPrice'
                 , UnitPrice_SF           varchar2(3)   path 'UnitPrice/@SF'
                 , ChargeAmount           number(6,2)   path 'ChargeAmount'
                 , TotalAddOnChargeAmount number(6,2)   path 'TotalAddOnChargeAmount'
                 , TotalNetAmount         number(6,2)   path 'TotalNetAmount'
         ) x2
       , XMLTable(
           XMLNamespaces(default 'http://www.IATA.com/IATAAviationInvoiceStandard')
         , '$d/LineItemDetail[LineItemNumber=$lin]'
           passing x1.LineItemDetails as "d"
                 , x2.LineItemNumber as "lin"
           columns AircraftRegistrationNo varchar2(30) path 'AircraftDetails/AircraftRegistrationNo'
                 , PartNo                 varchar2(30) path 'AircraftDetails/PartNo'
         ) x3
    ;
    
  • Reading XML file problem

    Hi all

    I'm reading an xml file and displays the output. I get a blank screen. Can someone help me please.

    Thanks in advance

    I can't attach the xml file. Since this is not a valid extension. Please find the following xml code.


    Samsung

    Busan
    South Korea

    If you can change the saved .xml file, you can modify it to be compatible with Labview XML shema and use Unflatten of XML as in your VI. If you can't, you must use the XML parser library. Attached, you will find 2 exmaples for these situations.

  • Import of XML files problems

    So I've recently switched to a PC from a Mac.  I prefer Windows 8 for all other OS, I know I'm in the minority, but that's what I like.  My question is this: when I imported my catalogues from my Mac to my PC all imported fine with display correctly all files and images showing a history of changes, etc.  However, for some reason a wedding I shot did not in it.  The files are there and the sidecar files.  So I tried to import this file into the catalog, and he did.  However, it has not imported the sidecar files and all my previous edits do not show now.

    How to import these XML files so that my changes are restored?  I see no option to import to the inlcude the screen or not include XML files.  Are my changes lost forever, or can they be saved? Thank you.

    FYI: I use Lightroom 4.3

    Looking for your changes. Things like exposure and contrast and other items.

  • link to the XML file problem

    I can't understand why I am getting an error when I try to publish a swf with a linked XML file?
    I had to have the original decompiled fla of swf file. all functions work well, no script error, but the file
    Homepage fla published in homepage.swf gives me "error opening URL"file:///Macintosh%20HD/Users/tuneraider/Desktop/valleefiles/xml/homepage.xml"

    the files are in the same folder. Any help?

    double checked that the files were in the same folder

  • extract data from xml file

    Hi all
    what it means:

    Select xxx xmltype(transaction_document).extract('//PerAllVacanciesEORow/xxx/text()').getStringVal)
    of hr_api_transactions
    where transaction_ref_table = 'PER_ALL_VACANCIES. '
    and transaction_ref_id = 4608;
    I think it gives only the value of the numeric type to a string format

    Please explain each step in detail

    Hello

    xmltype(transaction_document)
    

    Which converts the TRANSACTION_DOCUMENT (probably from the CLOB data type) in an XMLType data type column.

    .extract('//PerAllVacanciesEORow/xxx/text()')
    

    The part retrieves all text nodes containing elements 'xxx', whose parent is an element of 'PerAllVacanciesEORow '.
    Note that if the XPath "//PerAllVacanciesEORow/xxx" corresponds to multiple nodes, then text() values will be concatenated.

    .getStringVal()
    

    Converts the XMLType return VARCHAR2 data type.

    If you have a problem with the result, post an example of XML, the output data wanted him.
    Please also give your version of the database.

  • Web.Xml file problem

    < web - app 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".
    version "2.5" = >

    I try this to version 3.0 but JDeveloper does not seem to be too much change. Can someone tell me if this is supported? and what I can do to make it work? Unable to run the project at all. I need the 3.0 to run my project, JSP with servlet

    Hello.

    You do not specify what version of JDeveloper you use. I guess that's 11 GR 1 material or R2, that implement Java Enterprise Edition 5.

    If you need version 3.0 of the servlet API, which is part of Java EE 6, you must wait for JDeveloper 12 c.

    Either way, WebLogic server 12 c already implements Java EE 6, and you can get support full IDE by Oracle Enterprise Pack for Eclipse and NetBeans. Please note that you will not be able to use the framework of the ADF if you use EPCO, because it does not work on WLS 12 c for now.

  • having a problem with parsing the XML file

    Hi all
    I am trying to get data from XML file
    I want to only 4-5 values in this XML file
    Here is an example of XML file
    -< transaction >
    -< TransCtx >
    > < pAMETranType > IRCVACAPPROVAL < / pAMETranType >
    > < / TransCtx >
    > < / transaction >

    I want to add value and to store this value in table
    I'm here, I want to "IRCVACAPPROVAL".
    the tag
    < pAMETranType >

    for this purpose


    I created a procedure

    CREATE OR REPLACE PROCEDURE insert_xml_emps (p_directory in varchar2,
    > p_filename in varchar2)
    (> vtableName in varchar2) as
    > v_filelocator BFILE.
    > v_cloblocator CLOB.
    > l_ctx DBMS_XMLSTORE. CTXTYPE;
    > l_rows NUMBER;
    > v_amount_to_load NUMBER;
    > dest_offset NUMBER: = 1;
    > offset NUMBER: = 1;
    > lang_context NUMBER: = DBMS_LOB. DEFAULT_LANG_CTX;
    > WARNING NUMBER;
    > START
    > dbms_lob.createtemporary (v_cloblocator, true);
    > v_filelocator: = bfilename (p_directory, p_filename);
    > dbms_lob.open (v_filelocator, dbms_lob.file_readonly);
    > v_amount_to_load: = DBMS_LOB.getlength (v_filelocator);
    >-* this line is changed * -.
    > DBMS_LOB. LOADCLOBFROMFILE (v_cloblocator,
    > v_filelocator.
    > v_amount_to_load.
    > dest_offset.
    > offset.
    > 0,
    > lang_context.
    (> warning);
    >
    > l_ctx: = DBMS_XMLSTORE.newContext (vTableName);
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSACTION');
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSCTX');
    >-clear the update settings
    > DBMS_XMLStore.clearUpdateColumnList (l_ctx);
    >-set the columns to update a list of values
    > DBMS_XMLStore.setUpdateColumn (l_ctx, 'PAMETRANTYPE');
    >
    >-now insert the doc.
    > l_rows: = DBMS_XMLSTORE.insertxml (l_ctx, v_cloblocator);
    > DBMS_XMLSTORE.closeContext (l_ctx);
    > dbms_output.put_line(l_rows ||) "... inserted rows. ») ;
    > dbms_lob.close (v_filelocator);
    > DBMS_LOB. FREETEMPORARY (v_cloblocator);
    > END;

    I also have on the table who get this value

    whenever I call that created the procedure
    it sometime gives an error or sometime run correctly but store null in the table


    But when I change the XML file
    as
    When convert all lowercase letters in the capital then it works fine

    Is tehre to other ways to parse the XML file with no change in the XML file?

    Did you use the same test (with the exception of file name and directory) case?

    What I posted is a copy/paste direct SQL * Plus, and it works on version 11.2.0.1.

  • Difference concerning the registration and does not not a XSD with xml files

    SQL > select * from v version $;

    BANNER

    --------------------------------------------------------------------------------
    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE Production 11.1.0.7.0
    AMT for 64-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production

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

    With assistance from members of this forum, I was able to save a XSD successfully, save xml files in tables with xmltype columns and select data in xml files. For this, I am very grateful.

    Forgive me for not knowing this, but I can currently do these two things.

    1 save a XSD and create a table with an xmltype column based on the XSD. Insert the xml code in this table that corresponds to the xsd format.
    2. Insert an xml document in a table with an xmltype column without registering it of corresponding XSD and then select the data in this table too.

    Is there a performance advantage to save the XSD, the xml file is based on, when it comes to the insertion in the table or selection of data in the tables after insertion?

    The xml files, we insert could be anywhere from 1 MB to 500 MB + size beyond, since it depends on the amount of generated audit data. Is there a sweet spot as to how big or small, you would keep in mind the size of the xml files to avoid performance problems. If we do an audit in the future we would be inserting all of the xml files that are generated in a table and perform selects on this table. These data could last a day from the time wherever the system became operational at all.

    We want to avoid all over the head associated with XSD if only they affect performance.

    Thank you for your help in advance.

    Wally

    The xml files, we insert could be anywhere from 1 MB to 500 MB + size beyond, since it depends on the amount of generated audit data.

    Based on a schema XMLType (aka object-relational storage or a structure) is exactly what you need in this case.

    -When you save a diagram in the database, Oracle automatically creates a set of types of objects, collections, and tables that map XML to SQL data model structure.
    -When you insert an XML instance document in the table based on a schema, the XML content is then stored in the underlying relational structure.
    -When you run queries on the XMLType, for example using XQuery and XMLTable table, Oracle automatically rewrites the query in order to access the relational objects where the data resides. This process results in queries very effective whose performance compares queries on regular tables. The structure of the object-relational also supports the indexing.

    The documentation includes whole chapters on this topic:
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28369/xdb05sto.htm#g1070409
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28369/xdb_rewrite.htm#BABHJECG
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28369/xdb06stt.htm#BABGFCFG

  • How to check if a node exists in the XML file?

    I was asked to program a method to import data from xml files in our Coldfusion 8 Web site, I am new to the use of XML.

    My method worked however I encountered the following error:

    Element NETWORKORDER. SECONDARYADDRESS. CONTACTNAME is undefined in MYDOC.

    Investigation on the node in the XML file was not present.

    Is there a method I can use to resolve this error by checking if a node exists in the xml file, which works with my current code below?

    <!--> reading XML file
    < cffile action = "read" file = "D:\website\XML\#FileName#" variable = "myxml" >
    < cfset mydoc = XmlParse (myxml) >

    <!--> to extract data from the XML of NDS file
    < cfset aPrimaryContactName =(#mydoc.NetworkOrder.PrimaryAddress.ContactName#) >
    < cfset aPrimaryContactNumber =(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#) >
    < cfset aPrimaryContactNumber = tostring(#mydoc.NetworkOrder.PrimaryAddress.ContactNumber#) >
    < cfset aPrimaryContactAddressLine1 =(#mydoc.NetworkOrder.PrimaryAddress.line1#) >
    < cfset aPrimaryContactAddressLine2 =(#mydoc.NetworkOrder.PrimaryAddress.line2#) >
    < cfset aPrimaryContactAddressLine3 =(#mydoc.NetworkOrder.PrimaryAddress.line3#) >
    < cfset aPrimaryContactAddressLine4 =(#mydoc.NetworkOrder.PrimaryAddress.line4#) >
    < cfset aPrimaryContactAddressLine5 =(#mydoc.NetworkOrder.PrimaryAddress.line5#) >
    < cfset aPrimaryContactCity =(#mydoc.NetworkOrder.PrimaryAddress.City#) >
    < cfset aPrimaryContactPostcode =(#mydoc.NetworkOrder.PrimaryAddress.PostalCode#) >
    < cfset aPrimaryContactCounty =(#mydoc.NetworkOrder.PrimaryAddress.CountrySubdivision#) >
    < cfset aPrimaryContactCountryCode =(#mydoc.NetworkOrder.PrimaryAddress.CountryCode#) >
    < cfset aPrimaryContactCountry =(#mydoc.NetworkOrder.SecondaryAddress.Country#) >
    < cfset aSecondaryContactName =(#mydoc.NetworkOrder.SecondaryAddress.ContactName#) >
    < cfset aSecondaryAttentionOfName =(#mydoc.NetworkOrder.SecondaryAddress.AttentionOfName#) >
    < cfset aSecondaryContactNumber =(#mydoc.NetworkOrder.SecondaryAddress.ContactNumber#) >
    < cfset aSecondaryContactAddressLine1 =(#mydoc.NetworkOrder.SecondaryAddress.line1#) >
    < cfset aSecondaryContactAddressLine2 =(#mydoc.NetworkOrder.SecondaryAddress.line2#) >
    < cfset aSecondaryContactAddressLine3 =(#mydoc.NetworkOrder.SecondaryAddress.line3#) >
    < cfset aSecondaryContactAddressLine4 =(#mydoc.NetworkOrder.SecondaryAddress.line4#) >
    < cfset aSecondaryContactAddressLine5 =(#mydoc.NetworkOrder.SecondaryAddress.line5#) >
    < cfset aSecondaryContactCity =(#mydoc.NetworkOrder.SecondaryAddress.City#) >
    < cfset aSecondaryContactPostcode =(#mydoc.NetworkOrder.SecondaryAddress.PostalCode#) >
    < cfset aSecondaryContactCounty =(#mydoc.NetworkOrder.SecondaryAddress.CountrySubdivision#) >
    < cfset aSecondaryContactCountryCode =(#mydoc.NetworkOrder.SecondaryAddress.CountryCode#) >
    < cfset aSecondaryContactCountry =(#mydoc.NetworkOrder.SecondaryAddress.Country#) >

    Since you already have the XML parsed in a document, the easiest is to use xmlSearch(). Take a look at the doc, it is pretty easy to use. Something as simple as:

    To the most complex as:

    And in both cases:

    Read the doc and google is your friend "coldfusion xmlsearch.

  • Retrieve / search a specific node of the XML file

    Hello

    I have a question about reading the XML (search) in PL SQL file:

    There is an XML file with the following structure:
    <root>
      <Hnode1 attr1="value1" />
      <Hnode2 attr1="value1" /> 
         <node1_of_Hnode2 id="10" personname="Steven"/>
         <node2_of_Hnode2 id="20" personname="Christian"/>
         <node3_of_Hnode2 id="30" personname="Arnold"/>
         .
         .
      <Hnode2/>
    <root/>
    How it is possible to filter a node by one of its attribute value. For example:
    The id of a person - I guess that id = 20. In this case I would like to get the whole node (in this case node2_of_Hnode2) to get the personname = > 'Christian '.
    Just like a SELECT statement (WHERE ID = 20)

    Is it possible to get it in a single order or should it be buckled on all the lines in the Document. Can you please provide an example for me.

    Thank you for advice!

    The basic version is 10.

    Sorry, this is not a version.
    For example:

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE     10.2.0.5.0     Production
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
     
    

    The use of the extraction of the values?
    1. better in a Select statement. assignment directli in a variable, or by using the xmlquery function?

    PL/SQL or SQL calls to the XMLType methods such as getStringVal() or extract() function should be equivalent (save the change of context).
    However, none of them are the right way to retrieve a scalar value of a given node.
    You must use the rather extractValue() function (SQL only) for immediate release< 11.2="" and="" xmlcast/xmlquery="" starting="" with="">

    Another Question:

    I've seen a lot of options for dealing with XML files.

    In my case only query data in XML files is relevant.

    I've seen to many API called XMLDOM, DMBS_XMLDOM, XMLTYPE...

    When to use these APIs. Can you give me feedback on this please?

    It is a broad topic.
    An appropriate response will depend on your condition.

    -You have to deal with large files and if so what size?
    -Performance/memory management is a concern for you?
    -You want to extract unique values or process the XML content in the form of relational data?

    If you have any specific test cases to show us, please post in the {forum: id = 34} forum and make sure to include all the necessary details (see the FAQ).

    Published by: odie_63 on 23 Feb. 2012 11:35

Maybe you are looking for

  • For the C50D-B-120 Satellite DVD player need

    Hi people I am looking for a DVD player to my Toshiba Satellite C50D-B-120.I am currently using a DVD on another laptop. I ve managed to put it in and upwards and make it work, but would like the original is it of possible to get your hands on one. L

  • application of logging data

    Hello Wondering if you could help me with my problem. I am developing an application for data logging. The user will look at the actual data are read from a card thermocouple CDAQ and when it is happy that the temperature conditions are set, press a

  • BlackBerry Gmail and Blackberry Smartphones - can it be fixed where it removes automatically?

    I am new to the property of Blackberry... I have the 9000 "BOLD". I have an email address gmail and there are times when I am on Gmail, and I'm able to remove Gmail directly on my PC... Is there a way to sinc them upwards, so they delete at once inst

  • How can I create multiple PDFs from multiple files in Acrobat DC?

    How to convert a large number of files to PDF in Acrobat DC? Currently, I can only find a guide to Acrobat X

  • Copy-VMGuestFile multiple files

    Is it possible to copy multiple files (with line-name *) of the specific directory on linux. There are more than 1 file that I need to copy from different virtual machines.You will need to copy using - LocalToguest and put them using the - GuestToLoc