Please help to read the XML with XMLTable

Hi gurus,

I'm not very familiar with XML parsing. It seems to me that it should be very easy to get the data. For some reason, I'm having a problem to get the data.

SELECT *.
OF e util.hlsr_online_entries,.
XMLTABLE)
XmlNamespaces)
   ' http://tempuri.org/ '    as "dt",
("urn: schemas-microsoft-com: XML-diffgram-v1" as "dg").

"/ DataTable / dg:diffgram/DocumentElement/JrShowCustomerHeifers.
PASSAGE XMLTYPE (e.entry_data)
COLUMNS
SeqNo TO the ORDINALITE,
DocumentID NUMBER PATH "DocumentID",.
PATH of VARCHAR2 (100) ClubName "ClubName") as test
WHERE e.ref_id = 33422

The query above does all the data for me. My hunts is the problem with the tab DocumentElement. I tried a different variant management.

Please help me to resolve the application

I have the XML document following the DotNet developer

<? XML version = "1.0" encoding = "utf-8"? >

" < DataTable xmlns =" http://tempuri.org/ ">

< xs: Schema id = "NewDataSet" xmlns = "" "xmlns: XS =" " http://www.w3.org/2001/XMLSchema " "xmlns:msdata ="urn: schemas-microsoft-com: xml-msdata" >

< xs: element name = "NewDataSet" msdata:IsDataSet = "true" msdata:MainDataTable = "JrShowCustomerHeifers" msdata:UseCurrentLocale = "true" >

< xs: complexType >

< xs: Choice minOccurs = "0" maxOccurs = "unbounded" >

< xs: element name = "JrShowCustomerHeifers" >

< xs: complexType >

< xs: SEQUENCE >

< xs: element name = "DocumentID" type = "xs: int" minOccurs = "0" / >

< xs: element name = "ClubName" type = "xs: String" minOccurs = "0" / >

< xs: element name = "Name" type = "xs: String" minOccurs = "0" / >

< xs: element name = "FirstName" type = "xs: String" minOccurs = "0" / >

< xs: element name = "PreferredName" type = "xs: String" minOccurs = "0" / >

< xs: element name = "Email" type = "xs: String" minOccurs = "0" / >

< xs: element name = "Exhibitor" type = "xs: String" minOccurs = "0" / >

< xs: element name = "AnimalName" type = "xs: String" minOccurs = "0" / >

< xs: element name = "RegistryNo" type = "xs: String" minOccurs = "0" / >

< xs: element name = "DateofBirth" type = "xs: String" minOccurs = "0" / >

< xs: element name = "NameofSire" type = "xs: String" minOccurs = "0" / >

< xs: element name = "SireRegistryNo" type = "xs: String" minOccurs = "0" / >

< xs: element name = "NameofDam" type = "xs: String" minOccurs = "0" / >

< xs: element name = "DamRegistryNo" type = "xs: String" minOccurs = "0" / >

< xs: element name = "Tattoo" type = "xs: String" minOccurs = "0" / >

< xs: element name = "SecondaryTattoo" type = "xs: String" minOccurs = "0" / >

< xs: element name = "UniversalIDNumber" type = "xs: String" minOccurs = "0" / >

< xs: element name = "Tattoo_Location" type = "xs: String" minOccurs = "0" / >

< xs: element name = "Secondary_Tattoo_Location" type = "xs: String" minOccurs = "0" / >

< xs: element name = "OracleBreedID" type = "xs: int" minOccurs = "0" / >

< xs: element name = "JrValidationBreedName" type = "xs: String" minOccurs = "0" / >

< xs: element name = "ValidationDate" type = "xs: DateTime" minOccurs = "0" / >

< xs: element name = "ValidatedBy" type = "xs: String" minOccurs = "0" / >

< xs: element name = "ValidationComment" type = "xs: String" minOccurs = "0" / >

< / xs: SEQUENCE >

< / xs: complexType >

< / xs: element >

< / xs: Choice >

< / xs: complexType >

< / xs: element >

< / xs: Schema >

< xmlns:msdata = diffgr:diffgram "" urn: schemas-microsoft-com: xml-msdata "xmlns:diffgr =" urn: schemas-microsoft-com: XML-diffgram-v1 ">"

< DocumentElement xmlns = "" >

< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers1" msdata:rowOrder = "0" >

< > 18442 DocumentID < / DocumentID >

< ClubName > Perrin FFA < / ClubName >

Hamman < name > < / LastName >

< FirstName > Charles < / name >

< email > [email protected] < / email >

< setting > hammam, Charles < / Exhibitor >

< > 113 AnimalName < / AnimalName >

< RegistryNo > C1026447 < / RegistryNo >

< DateofBirth > 14/01/2013 < / DateofBirth >

< NameofSire > 808 808 DAYS of MATCH LH < / NameofSire >

< SireRegistryNo > C961101 < / SireRegistryNo >

SADIE 7/7 < NameofDam > < / NameofDam >

< DamRegistryNo > C941067 < / DamRegistryNo >

< > 113 tattoo < / tattoo >

< SecondaryTattoo / >

< UniversalIDNumber > 1194F020 < / UniversalIDNumber >

< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

< Secondary_Tattoo_Location / >

< OracleBreedID > 6383 < / OracleBreedID >

Beefmaster < JrValidationBreedName > < / JrValidationBreedName >

< ValidationDate > 2014-11-25T 08: 39:00 - 06:00 < / ValidationDate >

< ValidatedBy > laineyb < / ValidatedBy >

< ValidationComment / >

< / JrShowCustomerHeifers >

< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers2" msdata:rowOrder = "1" >

< > 18473 DocumentID < / DocumentID >

< ClubName > Perrin FFA < / ClubName >

Hamman < name > < / LastName >

< FirstName > Charles < / name >

< email > [email protected] < / email >

< setting > hammam, Charles < / Exhibitor >

< AnimalName > PURPLE CORALEE 349 KPH < / AnimalName >

< RegistryNo > P43461953 < / RegistryNo >

< DateofBirth > 04/11/2013 < / DateofBirth >

< NameofSire > PURPLE MOXY 22 X AND < / NameofSire >

< SireRegistryNo > P43126458 < / SireRegistryNo >

< NameofDam > TCC CORKY 6603 < / NameofDam >

< DamRegistryNo > P42457119 < / DamRegistryNo >

< > 349 tattoo < / tattoo >

< SecondaryTattoo > km/h < / SecondaryTattoo >

< UniversalIDNumber > 1194F021 < / UniversalIDNumber >

< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

< Secondary_Tattoo_Location > TATTOO - right ear < / Secondary_Tattoo_Location >

< OracleBreedID > 6389 < / OracleBreedID >

< JrValidationBreedName > Polled Hereford < / JrValidationBreedName >

< ValidationDate > 2014 - 12-01 T 11: 55:00 - 06:00 < / ValidationDate >

Hannah < ValidatedBy > < / ValidatedBy >

< ValidationComment / >

< / JrShowCustomerHeifers >

< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers3" msdata:rowOrder = "2" >

< > 18474 DocumentID < / DocumentID >

< ClubName > Perrin FFA < / ClubName >

Hamman < name > < / LastName >

< FirstName > Charles < / name >

< email > [email protected] < / email >

< setting > hammam, Charles < / Exhibitor >

< AnimalName > LANGFORDS SWEET N SOUR 4107 < / AnimalName >

< RegistryNo > 43504761 < / RegistryNo >

< DateofBirth > 02/03/2014 < / DateofBirth >

< NameofSire > LH TNT 1017 < / NameofSire >

< SireRegistryNo > 43199794 < / SireRegistryNo >

< NameofDam > LANGFORDS LADY 2206 AND < / NameofDam >

< DamRegistryNo > 43315143 < / DamRegistryNo >

< > 4107 tattoo < / tattoo >

< SecondaryTattoo / >

< UniversalIDNumber > 1194F018 < / UniversalIDNumber >

< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

< Secondary_Tattoo_Location / >

< OracleBreedID > 6398 < / OracleBreedID >

Hereford < JrValidationBreedName > < / JrValidationBreedName >

< ValidationDate > 2014-11-24T 14:26:00 - 06:00 < / ValidationDate >

Validator < ValidatedBy > < / ValidatedBy >

< ValidationComment / >

< / JrShowCustomerHeifers >

< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers4" msdata:rowOrder = "3" >

< > 18475 DocumentID < / DocumentID >

< ClubName > Perrin FFA < / ClubName >

Hamman < name > < / LastName >

< FirstName > Charles < / name >

< email > [email protected] < / email >

< setting > hammam, Charles < / Exhibitor >

< AnimalName > PURPLE CCC 19A LYDIA < / AnimalName >

< RegistryNo > P43406978 < / RegistryNo >

< DateofBirth > 05/02/2013 < / DateofBirth >

< NameofSire > PURPLE MB WOMANIZER 14UET < / NameofSire >

< SireRegistryNo > P42945146 < / SireRegistryNo >

< NameofDam > PURPLE CMCC NASTIA 9U < / NameofDam >

< DamRegistryNo > P42927201 < / DamRegistryNo >

< > 19A tattoo < / tattoo >

< SecondaryTattoo / >

< UniversalIDNumber > 1194F017 < / UniversalIDNumber >

< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

< Secondary_Tattoo_Location / >

< OracleBreedID > 6389 < / OracleBreedID >

< JrValidationBreedName > Polled Hereford < / JrValidationBreedName >

< ValidationDate > 2014 - 12-01 T 11: 55:00 - 06:00 < / ValidationDate >

Hannah < ValidatedBy > < / ValidatedBy >

< ValidationComment / >

< / JrShowCustomerHeifers >

< JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers5" msdata:rowOrder = "4" >

< > 18477 DocumentID < / DocumentID >

< ClubName > Perrin FFA < / ClubName >

Hamman < name > < / LastName >

< FirstName > Charles < / name >

< email > [email protected] < / email >

< setting > hammam, Charles < / Exhibitor >

< AnimalName > PURPLE SGW EDEN 12 b < / AnimalName >

< RegistryNo > P43521932 < / RegistryNo >

< DateofBirth > 02/04/2014 < / DateofBirth >

< NameofSire > first TIME's a WASTINe 0124 < / NameofSire >

< SireRegistryNo > 43123163 < / SireRegistryNo >

< NameofDam > PURPLE SM WONDER WOMAN 160Y < / NameofDam >

< DamRegistryNo > P43235169 < / DamRegistryNo >

< tattoo > 12 b < / tattoo >

< SecondaryTattoo > 12 b < / SecondaryTattoo >

< UniversalIDNumber > 1194F015 < / UniversalIDNumber >

< Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

< Secondary_Tattoo_Location > TATTOO - right ear < / Secondary_Tattoo_Location >

< OracleBreedID > 6389 < / OracleBreedID >

< JrValidationBreedName > Polled Hereford < / JrValidationBreedName >

< ValidationDate > 2014 - 12-01 T 11: 56:00 - 06:00 < / ValidationDate >

Hannah < ValidatedBy > < / ValidatedBy >

< ValidationComment / >

< / JrShowCustomerHeifers >

< / DocumentElement >

< / diffgr:diffgram >

< / DataTable >

user12021633 wrote:

Regarding your suggestion, I've never used the syntax of FLWOR. I'll try to implement if I can make it work.

"FLWOR is the abbreviation of ' for Let's where Order by Return" and refers to the full form of an XQuery query expression.

Do you think it would be faster than the way I have the values?

You have used a FLWOR expression (the 'for' + 'return' part of it) in this post: Re: Please help to read the XML with XMLTable

And I have already said: do not use in this case.

Faster or slower isn't the point. Oracle will evaluate the expression in the same way.

But from a maintenance point of view, it's obviously much easier to use a simple XPath expression like this:

/DT:GetJrShowCustomerHeifersResponse / dt:GetJrShowCustomerHeifersResult / dg:diffgram/DocumentElement/JrShowCustomerHeifers

Tags: Oracle Development

Similar Questions

  • Need help to read the xml file and place it in a table.

    Nice day!

    Here is the configuration. I have a xml file from another source which will call a stored procedure in my database (which I am supposed to create). This is a first for me, I've never done development pl/sql or worked with xml. :(

    That's what I hoped to accomplish, if there is a better way, that I am open to him.
    In short, to have a stored procedure that takes the xml file (transmitted by third parties via the call, no url must be a file), creates a temporary table and populates the two columns needed. Then, the SP will make a select join with the temporary table and other data available in another schema. Once the completed table selection will be truncated and dropped. SP farm.

    Details:
    DB: Oracle 11.2.0.1 RAC.
    Charset: AL32UTF8
    Example of XML: (nearly 10,000 lines like this in production)
    "< MerchantID report =" "#" name = 'Conversion detail report' ReportStartDate = '2011-09-27 12:00:00GMT' ReportEndDate = '2011-09-27 21:38:13GMT"Version ="1.1"> < Conversion = '1234567891234567 D' MerchantReferenceNumber Convertingdate =" 2011-09-27 13:39:02 "RequestID ="1234567891234567891234"> < OriginalDecision > REVIEW < / OriginalDecision > < NewDecision > ACCEPT < / NewDecision > < Reviewer > testusr < / examiner > < ReviewerComments > no reason to reject. < / ReviewerComments > < Notes > < Note Date = "2011-09-27 13:39:02" AddedBy = "testusr" comment = "Took possession" / > < / Notes > < queue > Digital Review < / queue > < profile > Digital orders QA < / profile > < / Conversion > "
    ...
    < / report >

    What I tried.
    I found a tutorial: http://it.toolbox.com/blogs/oracle-guide/oracle-and-xml-in-action-a-real-world-example-5319 I tried and was able to make it work. But I could not duplicate the results with my xml file. So I looked away and have had no success. :( I'm not a developer, so I'm really bad...

    I found a note of support: (how to load an XML file into a Database Table using DBMS_XMLSave unaided Bfile [227476.1 ID]) and couldn't make it work.

    I found some online then Odie son xml and tried these but slipped and couldn't get my versions of these great answers to work for me.

    Then... I'm here now and hoping that someone could walk me through this.


    I tinkered this SP (it doesn't have to be that way, the suggestions are greatly appreciated)

    create or replace procedure xml_to_table (call_1 call_2) as

    Start
    run immediately "CREATE GLOBAL TEMPORARY TABLE XMLType IMRPT
    --(clé primaire contrainte-imrpt_pk (MerchantReferenceNumber))
    XmlType store as xml binary basicfile
    -(high compression)
    virtual columns
    (MerchantReferenceNumber as (xmlcast (xmlquery ('/ Conversion/MerchantReferenceNumber ' from object_value content back) as VARCHAR2 (32))))
    , NewDecision as (xmlcast (xmlquery ('/ Conversion/NewDecision ' from object_value content back) as VARCHAR2 (10)))
    )
    -ON COMMIT PRESERVE ROWS

    run immediately 'save xml as a file on the local system?'

    insert into IMRPT (MerchantReferenceNumber, NewDecision)

    run immediately "join select statement.
    run immediately 'truncate table IMRPT.
    run immediately "drop table IMRTP.

    end;
    /

    On my last test, I tried to select just in the xml file using this:

    DECLARE
    indomdoc DBMS_XMLDOM. DOMDocument;
    innode DBMS_XMLDOM. DOMNode;
    myParser DBMS_XMLPARSER.parser;
    buf VARCHAR2 (2000);
    BEGIN
    myParser: = DBMS_XMLPARSER.newParser;

    DBMS_XMLPARSER.setBaseDir (myparser, 'XML_DIR');
    DBMS_XMLPARSER. Parse (myParser, "test.xml");

    indomdoc: = DBMS_XMLPARSER.getDocument (myParser);

    -just to test content
    innode: = DBMS_XMLDOM.makeNode (indomdoc);
    DBMS_XMLDOM.writeToBuffer (innode, buf);
    Dbms_output.put_line (BUF);

    dbms_xmldom.freeDocument (indomdoc);
    dbms_xmlparser.freeParser (myParser);
    END;
    /

    It was another accident and burn.

    Any help would be appreciated.

    Thank you

    Like I said:

    Here is an example using a REF CURSOR variable ( you will need to declare a plus for your actual procedure )

    Your procedure has two parameters, you must declare two variables to hold the two REF CURSOR ;)

    DECLARE
    
      v_filename      VARCHAR2(50) := 'DMReport.xml';
      v_rc1            SYS_REFCURSOR;
      v_rc2            SYS_REFCURSOR;
    
      v_order_name       VARCHAR2(100);
      v_reason_text      VARCHAR2(100);
    
    BEGIN
    
      xml2table(v_filename, v_rc1, v_rc2);
    
      commit;
    
      loop
        fetch v_rc1 into v_order_name;
        exit when v_rc1%notfound;
        dbms_output.put_line('ORDER_NAME='||v_order_name);
      end loop;
    
      close v_rc1;
    
      loop
        fetch v_rc2 into v_order_name, v_reason_text;
        exit when v_rc2%notfound;
        dbms_output.put_line('ORDER_NAME='||v_order_name||', REASON_TEXT='||v_reason_text);
      end loop;
    
      close v_rc2;
    
    END;
    /
    

    If you test this in SQL * Plus, do not forget to SET SERVEROUTPUT ON to see the result.

  • Error code 19 - CD/DVD-ROM problem. Please help and read the description first!

    I tried to load my games such as rollercoaster tycoon on my computer by inserting them into the disc drive. Nothing happens. I went to toautoplay and it had all the right settings I wanted. I changed several times and tried to re - insert the disc, but nothing has happened yet. I thought it was a problem of CD/DVD drive, so I went to 'Computer', right-click on Vista64 (C :) and selected 'properties'.) I clicked on the Hardware tab, and then on HL - DT - ST DVDRAM GS20N, my CD-ROM/DVD-ROM drive. I realized quickly that there was a problem, because the box said"device status: Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged.» (Code 19) «. I looked at the code 19 on the support Web page and found a link to a Microsoft Fixit, Windows Powershell 1.0. I installed the program, he ran through and he said that he had fixed the problem. I inserted the game once more, but still nothing happens. I went to my CD-ROM/DVD-ROM drive once more and he said that the problem was not resolved. I don't know how to solve this problem. Help, please! (It is not just the CD I try to insert, because none of the many CD I tried to use will work). Should I try to restart my computer?

    Hi meluvcheese22,

    This can occur when more than one service is defined for a device, if there is a failure opening the service subkey, or if the driver name cannot be obtained from the service subkey.

    To resolve this problem, you can follow the methods below:

    Method 1:

    Important: The following instructions contain the steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information, view the article:How to back up and restore the registry in Windows:http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry

    a. Click Start and then click all programs.

    b. click Accessories and then click Run.

    c. type regedit and then click OK.

    d. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.

    e. in the navigation pane, search for, and then click the following registry subkey:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    f. in the right pane, click UpperFilters.

    Note: You may also see an UpperFilters.bak registry entry. You don't have to delete this entry. Click UpperFilters. If you do not see the UpperFilters registry entry, you may still have to delete the LowerFilters registry entry. To do this, go to step i.

    g. in the Edit menu, click on delete.

    h. When you are prompted to confirm the deletion, click Yes.

    i. in the right pane, click LowerFilters.

    j. in the Edit menu, click on delete.

    k. When you are prompted to confirm the deletion, click Yes.

    Exit Registry Editor.

    Mr., restart the computer.

    You can check the link below: your CD-ROM drive or DVD drive is missing or is not recognized by Windows or other programs:http://support.microsoft.com/kb/982116

    Method 2:

    a. Click Start, type devmgmt.msc and press to enter. The Device Manager window opens

    b. expand DVD/CD player and right click on the sub element and click on uninstall.

    c. restart your computer.

    d. open Device Manager, click Action,

    e. click on scan for hardware changes. Follow the instructions.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Please help to solve the problem with Incerements

    Hi all, hope you can help.

    Basically I have a stored procedure that adds the someones preferences of room on a table.
    The PK of tables is the (ck_Application_no, ck_preference_no) together.

    Depending on how preferences a person chooses, ck_preferenceno is assumed to start at 1 and increment by 1 then. So, here is a typical example of a State of people.

    CK_APPLICATION_NO - CK_PREFERENCE_NO - FK_BED_SPACE
    7942------------------------------10--------------------------------HOWLES
    7942------------------------------11--------------------------------TUDSTE
    7942------------------------------12---------------------------------PARSPE
    7942------------------------------13--------------------------------CLESPE
    7942------------------------------14--------------------------------HOWSPE

    7944------------------------------1-----------------------------------PARSPE
    7944------------------------------2-----------------------------------CLESPE

    10---------------------------------1------------------------------------BINSTA
    10---------------------------------2------------------------------------MMASTE
    10---------------------------------3------------------------------------MMASTE

    This process worked without problem for a year, but all of a suddon sometimes strange, the CK_PREFERENCE_NO has not increment properly (as you can see for CK_APPLICATION_NO 7944 and 10) are accurate.
    but 7942 began with 10 for some reason any? :-/

    Cleaning this error!
    I need to focus on the issue, but I need first to clean these erros like there aren't has more than 1,000 files on 200 separate requests with the incorrect increment.


    Can I run some kind of LOOP to browse this table and change the ck_PREFERENCE_NO under each separate APPLICATION (ck_application_no)) to start at 1 e.t.c.
    Thus, for example, the above table I want to look like this:


    CK_APPLICATION_NO - CK_PREFERENCE_NO - FK_BED_SPACE
    7942------------------------------1--------------------------------HOWLES
    7942------------------------------2--------------------------------TUDSTE
    7942------------------------------3--------------------------------PARSPE
    7942------------------------------4--------------------------------CLESPE
    7942------------------------------5---------------------------------HOWSPE

    7944------------------------------1--------------------------------PARSPE
    7944------------------------------2--------------------------------CLESPE

    10----------------------------------1--------------------------------BINSTA
    10----------------------------------2--------------------------------MMASTE
    10----------------------------------3--------------------------------MMASTE

    Any help would be amazing.

    Hello

    It is surprising that you have spent any amount of time without problems. It is very difficult to keep a column like ck_preference_no updated. Many people woudn't even try; they simply have a unique constraint on (ck_application_no, ck_preference_no), and, when they need to convert these numbers consectuive integers (1, 2, 3,...) use ROW_NUMBER.

    If you really want to update the table, you can use ROW_NUMBER in the same way. For example:

    MERGE INTO     table_x          dst
    USING  (
               SELECT  ROWID   AS r_id
            ,        ROW_NUMBER () OVER ( PARTITION BY  ck_application_no
                                               ORDER BY      ck_preference_no
                              )     AS new_preference_no
            FROM    table_x
    --        WHERE   ...          -- if wanted
           )                     src
    ON     (src.r_id     = dst.r_id)
    WHEN MATCHED
    THEN UPDATE
    SET   dst.ck_preference_no     = src.new_preference_no
    ;
    

    I hope that answers your question.
    If this isn't the case, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for the table such that it exists today, with the ck_preferrence_nos bad and also poster the expected result of these data, words, the contents of the table after it is corrected.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • building XPath with the XML with the Namespace using PL SQL

    All trying to build the path to each node, when the XML code with no namespace, the following code works very well provide the result

    1 ~/

    2 ~ /Person/

    3 ~ /Person/ âge /

    4 ~ /Person/ homecity /

    5 ~ /Person/ nom /

    6 ~ /Person/ AccueilGuides/lat /

    7 ~ /Person/ AccueilGuides/name /

    8 ~ /Person/ homecity / long /

    But when the XML is changed to

    <person xmlns="urn:person" xmlns:lat="urn:lat">
    <name>Rob</name>
    <age>37</age>
    <homecity>
        <name>London</name>
        <lat>123.000</lat>
        <long>0.00</long>
    </homecity>
    </person>"

    The result of the code below the performance translates into just below result

    1~/
     2~/person/

    In the XML file above, XML namespace is not constant and varies for each XML. My requirement is to analyze the complete XML code, where I can read the XML with namespace and get the result that is mentioned below

    1~/
    2~/person/
    3~/person/age/
    4~/person/homecity/
    5~/person/name/
    6~/person/homecity/lat:lat/
    7~/person/homecity/name/
    8~/person/homecity/long/

    Can you please help me solve the issue mentioned. Thanks in advance. -Code snippet below:

    DECLARE
      l_File VARCHAR2(32000) := '<person>
    <name>Rob</name>
    <age>37</age>
    <homecity>
        <name>London</name>
        <lat>123.000</lat>
        <long>0.00</long>
    </homecity>
    </person>';
     
     l_Where_Clause VARCHAR2(100) := '/*';
     l_Append_Var   VARCHAR2(100) := '/';
     
     TYPE Ty_Paths IS TABLE OF VARCHAR2(1000) INDEX BY PLS_INTEGER;
     l_Ty_Paths      Ty_Paths;
     l_Ty_Paths_Temp Ty_Paths;
     
     TYPE Ty_Verifier IS TABLE OF VARCHAR2(1000) INDEX BY VARCHAR2(1000);
     l_Ty_Varifier Ty_Verifier;
     
    l_Prev_Query_Rec VARCHAR2(100);
    l_Index_Num      NUMBER := 0;
    l_Cur_Exec_Row   NUMBER := 0;
    BEGIN
     l_Ty_Paths(Nvl(l_Ty_Paths.COUNT, 0) + 1) := l_Append_Var;
     l_Cur_Exec_Row := 1;
     
     --Dbms_Output.put_line('Before entering the loop');
     
     LOOP
       l_Ty_Paths_Temp.DELETE;
      SELECT DISTINCT REPLACE(l_Append_Var || '/' || t.Xml || '/', '//', '/') BULK COLLECT
       INTO   l_Ty_Paths_Temp
      FROM   (SELECT Xmltype(Extract(VALUE(e), '/').Getstringval()) .Getrootelement() AS Xml
               FROM   TABLE(Xmlsequence(Extract(Xmltype(l_File), l_Where_Clause))) e) t;
     
      l_Ty_Varifier(Nvl(l_Ty_Varifier.COUNT, 0) + 1) := l_Append_Var;
      --Dbms_Output.put_line('L_TY_PATHS_TEMP.Count::'||L_TY_PATHS_TEMP.Count);
      IF l_Ty_Paths_Temp.COUNT > 0 THEN
         l_Index_Num := Nvl(l_Ty_Paths.COUNT, 0) + 1;
         FOR i IN l_Ty_Paths_Temp.FIRST .. l_Ty_Paths_Temp.LAST LOOP
            l_Ty_Paths(l_Index_Num) := l_Ty_Paths_Temp(i);
            --Dbms_Output.put_line('L_INDEX_NUM::'||L_INDEX_NUM);
            --Dbms_Output.put_line('L_TY_PATHS(L_INDEX_NUM)::'||L_TY_PATHS(L_INDEX_NUM));
            l_Index_Num := l_Index_Num + 1;
         END LOOP;
      END IF;
      --Dbms_Output.put_line('L_TY_PATHS.Count::'||L_TY_PATHS.Count);
      --Dbms_Output.put_line('L_TY_PATHS.Count::'||L_CUR_EXEC_ROW);
     
      IF (NOT l_Ty_Paths.EXISTS(l_Cur_Exec_Row + 1)) OR (l_Cur_Exec_Row = l_Ty_Paths.COUNT) THEN
         --Dbms_Output.put_line('Exiting');
         EXIT;
      ELSE
         --Dbms_Output.put_line('Inside the Else part');
     
         l_Cur_Exec_Row := l_Cur_Exec_Row + 1;
         l_Append_Var   := l_Ty_Paths(l_Cur_Exec_Row);
         l_Where_Clause := l_Ty_Paths(l_Cur_Exec_Row) || '*';
      END IF;
     
      --To Display the record:
         --Dbms_Output.put_line(L_TY_PATHS.Count);
      END LOOP;
      IF l_Ty_Paths.COUNT > 0 THEN
        FOR i IN l_Ty_Paths.FIRST .. l_Ty_Paths.LAST LOOP
          Dbms_Output.Put_Line(i || ' record is ' || l_Ty_Paths(i));
       END LOOP;
     END IF;
     
    END;

    Thank you.

    If you have patterns, it may be easier to work directly on them.

    Here's the idea:

    (1) install "Oracle XML DB manageability Packages", available on the code page for the XML DB sample: http://download.oracle.com/otn/samplecode/xdb_util.zip

    This is a set of utilities which allows us to annotate the XML schemas, to deal with the underlying or storage structure, and (this is the interesting part here) a few views of dictionary to describe the relational XSD structure.

    (it is now an integrated 12 c btw)

    (2) enter these two schemas:

    Start

    () dbms_xmlschema.registerSchema

    schemaURL-online "pacs.002.001.03S2.xsd."

    schemaDoc-online xmltype (bfilename('TEST_DIR','pacs.002.001.03S2.xsd'), nls_charset_id ('AL32UTF8'))

    local-online true

    genTypes-online fake

    genTables-online fake

    enableHierarchy-online dbms_xmlschema. ENABLE_HIERARCHY_NONE

    options-online dbms_xmlschema. REGISTER_BINARYXML

    );

    end;

    /

    Start

    () dbms_xmlschema.registerSchema

    schemaURL-online "SCTCvfBlkCredTrf.xsd."

    schemaDoc-online xmltype (bfilename('TEST_DIR','SCTCvfBlkCredTrf.xsd'), nls_charset_id ('AL32UTF8'))

    local-online true

    genTypes-online fake

    genTables-online fake

    enableHierarchy-online dbms_xmlschema. ENABLE_HIERARCHY_NONE

    options-online dbms_xmlschema. REGISTER_BINARYXML

    );

    end;

    /

    (3) the following query built all the paths of node defined by the main schema (SCTCvfBlkCredTrf.xsd), as well as the namespaces:

    with schema_list (schema_url, schema_owner) as)

    Select 'SCTCvfBlkCredTrf.xsd', 'OTN' from dual

    Union of all the

    Select sd.dep_schema_url, sd.dep_schema_owner

    of schema_list sl

    Join dba_xml_schema_dependency on sd.schema_url = sl.schema_url sd

    and sd.schema_owner = sl.schema_owner

    ),

    namespace_mapping (target_namespace, prefix) as long as)

    Select target_namespace

    , « ns » || ROW_NUMBER() (order target_namespace) as a prefix

    of user_xml_schema_namespaces

    where schema_url in (select schema_url from schema_list)

    ),

    () schema_nodes

    is_attr

    node_name

    max_occurs

    element_id

    parent_element_id

    target_namespace

    schema_url

    ) as)

    Select 0

    element_name as node_name

    xmlcast)

    XMLQUERY ('/ XS: ELEMENT / ' @maxOccurs passing returning content element)

    as varchar2 (10)

    )

    element_id

    parent_element_id

    target_namespace

    schema_url

    of user_xml_schema_elements

    where schema_url in (select schema_url from schema_list)

    Union of all the

    Select 1

    attribute_name as node_name

    null

    null

    element_id

    target_namespace

    schema_url

    of user_xml_schema_attributes

    where schema_url in (select schema_url from schema_list)

    )

    Select the level

    sn.node_name

    sn.max_occurs

    connect_by_isleaf as is_leaf

    sys_connect_by_path)

    -case when ns.prefix is not null and is_attr = 0 then ns.prefix | ':' end |

    -case when sn.is_attr = 1 then ' @' end |

    SN. NODE_NAME

    , '/'

    ) as xpath

    -, target_namespace

    of schema_nodes sn

    outer join ns namespace_mapping let ns.target_namespace = sn.target_namespace

    Connect prior sn.element_id = sn.parent_element_id

    Start with sn.schema_url = "SCTCvfBlkCredTrf.xsd".

    and sn.parent_element_id is null

    ;

    LEVEL MAX_OCCURS IS_LEAF XPATH NODE_NAME
    ----- ------------------ ---------- ------- ----------------------------------------------------------------------------------------------------------
    1 SCTCvfBlkCredTrf 0 /ns2:SCTCvfBlkCredTrf
    2 1 SndgInst /ns2:SCTCvfBlkCredTrf / ns2:SndgInst
    2 1 RcvgInst /ns2:SCTCvfBlkCredTrf / ns2:RcvgInst
    2 1 SrvcId /ns2:SCTCvfBlkCredTrf / ns2:SrvcId
    2 1 TstCode /ns2:SCTCvfBlkCredTrf / ns2:TstCode
    2 FType 1 /ns2:SCTCvfBlkCredTrf / ns2:FType
    2 FileRef 1 /ns2:SCTCvfBlkCredTrf / ns2:FileRef
    2 1 FileDtTm /ns2:SCTCvfBlkCredTrf / ns2:FileDtTm
    2 1 OrigFRef /ns2:SCTCvfBlkCredTrf / ns2:OrigFRef
    2 1 OrigFName /ns2:SCTCvfBlkCredTrf / ns2:OrigFName
    2 1 OrigDtTm /ns2:SCTCvfBlkCredTrf / ns2:OrigDtTm
    2 1 FileRjctRsn /ns2:SCTCvfBlkCredTrf / ns2:FileRjctRsn
    2 1 FileBusDt /ns2:SCTCvfBlkCredTrf / ns2:FileBusDt
    2 1 FileCycleNo /ns2:SCTCvfBlkCredTrf / ns2:FileCycleNo
    2 FIToFIPmtStsRptS2 1 /ns2:SCTCvfBlkCredTrf 0 / ns2:FIToFIPmtStsRptS2
    3 GrpHdr 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:GrpHdr
    4 MsgId 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:GrpHdr / ns1:MsgId
    4 CreDtTm 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:GrpHdr / ns1:CreDtTm
    4 InstgAgt 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:GrpHdr / ns1:InstgAgt
    5 FinInstnId 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:GrpHdr / ns1:InstgAgt / ns1:FinInstnId
    6 BIC 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:GrpHdr / ns1:InstgAgt / ns1:FinInstnId / ns1:BIC
    3 OrgnlGrpInfAndSts 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts
    4 OrgnlMsgId 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:OrgnlMsgId
    4 OrgnlMsgNmId 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:OrgnlMsgNmId
    4 OrgnlNbOfTxs 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:OrgnlNbOfTxs
    4 OrgnlCtrlSum 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:OrgnlCtrlSum
    4 GrpSts 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:GrpSts
    4 StsRsnInf 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:StsRsnInf
    5 Orgtr 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:StsRsnInf / ns1:Orgtr
    6 id 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:StsRsnInf / ns1:Orgtr / ns1:Id
    7 OrgId 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:StsRsnInf / ns1:Orgtr / ns1:Id / ns1:OrgId
    8 1 BICOrBEI /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:StsRsnInf / ns1:Orgtr / ns1:Id / ns1:OrgId / ns1:BICOrBEI
    5 ARS 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:StsRsnInf / ns1:Rsn
    6 Cd 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:StsRsnInf / ns1:Rsn / ns1:Cd
    6 Prtry 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:StsRsnInf / ns1:Rsn / ns1:Prtry
    4 NbOfTxsPerSts 2 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:NbOfTxsPerSts
    5 1 DtldNbOfTxs /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:NbOfTxsPerSts / ns1:DtldNbOfTxs
    5 1 DtldSts /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:NbOfTxsPerSts / ns1:DtldSts
    5 1 DtldCtrlSum /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:OrgnlGrpInfAndSts / ns1:NbOfTxsPerSts / ns1:DtldCtrlSum
    3 TxInfAndSts boundless 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts
    4 StsId 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:StsId
    4 OrgnlInstrId 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlInstrId
    4 OrgnlEndToEndId 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlEndToEndId
    4 OrgnlTxId 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxId
    4 TxSts 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:TxSts
    4 StsRsnInf 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:StsRsnInf
    5 Orgtr 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:StsRsnInf / ns1:Orgtr
    6 id 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:StsRsnInf / ns1:Orgtr / ns1:Id
    7 OrgId 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:StsRsnInf / ns1:Orgtr / ns1:Id / ns1:OrgId
    8 1 BICOrBEI /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:StsRsnInf / ns1:Orgtr / ns1:Id / ns1:OrgId / ns1:BICOrBEI
    5 ARS 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:StsRsnInf / ns1:Rsn
    6 Cd 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:StsRsnInf / ns1:Rsn / ns1:Cd
    6 Prtry 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:StsRsnInf / ns1:Rsn / ns1:Prtry
    4 InstdAgt 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:InstdAgt
    5 FinInstnId 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:InstdAgt / ns1:FinInstnId
    6 BIC 1 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:InstdAgt / ns1:FinInstnId / ns1:BIC
    4 OrgnlTxRef 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxRef
    5 IntrBkSttlmAmt 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxRef / ns1:IntrBkSttlmAmt
    CTL 6 1 /ns2:SCTCvfBlkCredTrf/ns2:FIToFIPmtStsRptS2/ns1:TxInfAndSts/ns1:OrgnlTxRef/ns1:IntrBkSttlmAmt/@Ccy
    5 1 IntrBkSttlmDt /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxRef / ns1:IntrBkSttlmDt
    5 DbtrAgt 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxRef / ns1:DbtrAgt
    6 FinInstnId 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxRef / ns1:DbtrAgt / ns1:FinInstnId
    7 1 BIC /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxRef / ns1:DbtrAgt / ns1:FinInstnId / ns1:BIC
    5 CdtrAgt 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxRef / ns1:CdtrAgt
    6 FinInstnId 0 /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxRef / ns1:CdtrAgt / ns1:FinInstnId
    7 1 BIC /ns2:SCTCvfBlkCredTrf / ns2:FIToFIPmtStsRptS2 / ns1:TxInfAndSts / ns1:OrgnlTxRef / ns1:CdtrAgt / ns1:FinInstnId / ns1:BIC

    In fact, you would be generally extracted from mapping data in a separate query so that you can use it to build the dynamic with XMLNamespaces clause of the namespace.

    NB1: Also note that not all roads are needed, only those which IS_LEAF = 1 or MAX_OCCURS = "unlimited" or MAX_OCCURS > '1', then you can add a filter predicate in the query directly.

    NB2: The query does support all the features of XSD, for example, I've relied on the default behavior for attributes 'element_form_default' and 'attribute_form_default '.

  • How to read the data with different XML schemas within the unique connection?

    • I have Oracle database 11g
    • I access it via JDBC: Slim, version 11.2.0.3, same as xdb.
    • I have several tables, each has an XMLType column, all based on patterns.
    • There are three XML schemas different registered in the DB
    • Maybe I need to read the XML data in multiple tables.
    • If all the XMLTypes have the same XML schema, there is no problem,
    • If patterns are different, the second reading will throw BindXMLException.
    • If I reset the connection between the readings of the XMLType column with different schemas, it works.

    The question is: How can I configure the driver, or the connection to be able to read the data with different XML schemas without resetting the connection (which is expensive).

    Code to get data from XMLType is the implementation of case study:

     1   ResultSet resultSet = statement.executeQuery( sql ) ; 
    2   String result = null ;
    3    while(resultSet.next()) {
    4   SQLXML sqlxml = resultSet.getSQLXML(1) ;
    5   result = sqlxml.getString() ;
    6   sqlxml.free();
    7   }
    8   resultSet.close();
    9    return result ;

    It turns out, that I needed to serialize the XML on the server and read it as BLOB. Like this:

     1    final Statement statement = connection.createStatement() ;  2    final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;  3   ResultSet resultSet = statement.executeQuery( sql ) ;  4   String result = null ;  5    while(resultSet.next()) {  6   Blob blob = resultSet.getBlob( 1 );  7   InputStream inputStream = blob.getBinaryStream();  8   result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();  9   inputStream.close(); 10   blob.free(); 11   } 12   resultSet.close(); 13   statement.close(); 14  15   System.out.println( result ); 16    return result ; 17
    

    Then it works. Still, can't get it work with XMLType in resultset. On the customer XML unwrapping explodes trying to pass to another XML schema. JDBC/XDB problem?

  • OSB: How to read the xml file, which is in OSB project

    Hello

    We have a generic proxy (PG1) reporting and deals alerts, this proxy is called in the pipelines of proxies anothers (P1... PN) in several projects. Each client proxy (P1... PN) PN) before call proxy PG1, configures a variable with syntactic alert or report.

    We thought it would be a good idea to store the specifications for all the proxies of a project as an xml file, so that the proxy PG could read the xml file. This file will be in the OSB project.

    The questions are:
    -proxy can read a xml file that is in the OSB project?
    S ' Please, are all the documentation for this?

    Thank you

    Kind regards

    You can always do customization to work with the properties defined in a XML xquery. The key to this is to use the customization of reference instead of find and replace the customization, similar to the service account customizations.
    Keep your real estate to as properties_dev of env xquery specific xmls, properties_sit etc then apply customization of service proxy xquery reference reference specific correct env.

  • my flash reads the xml, but does not include the php tag...

    my flash reads the xml, but does not include the tag php. I want to read my xml dynamically, Please help me.

    Code:

    Stop();

    function randomOrder (targetArray)

    {

    var _loc2 = targetArray.length;

    var _loc3 = [];

    for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)

    {

    _loc3 [_loc1] = _loc1;

    } / / end of for

    var _loc4 = [];

    for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)

    {

    _loc4 [_loc1] _loc3.splice = (Math.floor (Math.random () * _loc3.length), 1);

    } / / end of for

    var _loc5 = [];

    for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)

    {

    _loc5 [_loc1] = targetArray [_loc4 [_loc1]];

    } / / end of for

    return (_loc5);

    } / / End of the function

    var randomNUM = '? '. n ="+ random (9999);

    _root. LAN = 1;

    var homehead;

    HomeLink var;

    var homelinkwindow;

    var homebg;

    var homeflash;

    lamp var = Array();

    promo var = Array();

    var promobottom = Array();

    var headimg = Array();

    f_xmlwork2 = new XML();

    f_xmlwork2.ignoreWhite = true;

    f_xmlwork2. Load ("banner.php");

    f_xmlwork2. OnLoad = {function (success)}

    If (success) {}

    trace ("XML loaded!');

    f_xmlItemx2 = parseInt(this.firstChild.childNodes[0].firstChild);

    f_totalx2 = f_xmlItemx2.length;

    trace (f_totalx2);

    var _loc12 = 0;

    declarar a fundo imagem

    homebg = this.firstChild.childNodes [0].firstChild.nodeValue;

    f_headimg = this.childNodes [1];

    for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++ _loc2) {}

    Juju = f_headimg.childNodes [_loc2];

    JJ = headimg.push ({headimg: f_headimg.childNodes [_loc2].attributes.headimg, bgimg: f_headimg.childNodes [_loc2].attributes.bgimg, msgimg: f_headimg.childNodes [_loc2].attributes.msgimg, leftthrow: f_headimg.childNodes [_loc2].attributes.leftthrow, rightthrow: f_headimg.childNodes [_loc2].attributes.rightthrow});

    }

    end for

    allpromo = this.childNodes [2];

    jjpromo = allpromo.childNodes;

    for (var _loc2 = 0; _loc2 < allpromo.childNodes.length; ++ _loc2)

    {

    trace (jjpromo, [_loc2],.attributes.title);

    JJ = promo.push ({img:. attributes.img jjpromo [_loc2], title: jjpromo [_loc2].attributes.title, url: jjpromo [_loc2].attributes.url, window: jjpromo [_loc2].attributes.window, info: jjpromo [_loc2] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue});

    }

    end of for

    allpromobottom = this.childNodes [3];

    jjpromobottom = allpromobottom.childNodes;

    for (var _loc2 = 0; _loc2 < allpromobottom.childNodes.length; ++ _loc2)

    {

    trace (jjpromo, [_loc2],.attributes.title);

    JJ = promobottom.push ({url: jjpromobottom [_loc2].attributes.url, window: jjpromobottom [_loc2].attributes.window, info: jjpromobottom [_loc2] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue});

    } / / end of for

    If (f_xmlwork2.loaded is true)

    {

    headimg = randomOrder (headimg);

    for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++ _loc2)

    {

    trace (headimg, [_loc2], .headimg);

    } / / end of for

    play ();

    } / / end if

    }

    }

    trace (f_xmlwork2);

    Stop();

    PHP code:

    <?

    $link = mysql_connect("localhost","rnpac_eco","123");

    @mysql_select_db ("rnpac");

    $dir = "' banner /"; "

    Dir1 $= "" products/img_pro / ";"

    Dir2 $= "" universo/activities / ";"

    $sql = ' SELECT tbl_produto.id_produto, tbl_produto.produto, tbl_produto.legenda, tbl_produto.detalhe, tbl_produto.preco, tbl_produto.produto_cat_id, tbl_detalhe_produto.proprietario, tbl_detalhe_produto.local, tbl_detalhe_produto.qualidade, tbl_detalhe_produto.alcool, tbl_detalhe_produto.acidez, tbl_detalhe_produto.ph, tbl_detalhe_produto.informacao, tbl_detalhe_produto.gestor, tbl_detalhe_produto.condicionamento, tbl_detalhe_produto.detalhe_t, tbl_detalhe_produto.interesse, tbl_detalhe_produto.transporte, tbl_detalhe_produto.produto_id, tbl_imagem_produto.id_imagem tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6

    OF tbl_cat_produto, tbl_produto, tbl_detalhe_produto, tbl_imagem_produto WHERE tbl_produto.id_produto = tbl_detalhe_produto.produto_id AND tbl_produto.id_produto = tbl_imagem_produto.produto_id ORDER OF RAND()';

    $resultado = mysql_query ($sql)

    or die ("Nao faith possible realize a consulta.');

    $row1 = mysql_fetch_array ($resultado);

    $sql = "SELECT tbl_sub_universo.id_subuniverso, tbl_sub_universo.subuniverso, tbl_sub_universo.universo_id, tbl_actividade.id_actividade, tbl_actividade.entidade, tbl_actividade.legenda, tbl_actividade.subuniverso_id, tbl_actividade.det, tbl_actividade.preco, tbl_actividade.data, tbl_detalhe_actividade.actividade_id, tbl_detalhe_actividade.periodo, tbl_detalhe_actividade.descricao, tbl_detalhe_actividade.programa, tbl_detalhe_actividade.informacoes, tbl_detalhe_actividade.actividades, tbl_detalhe_actividade.localizacao, tbl_detalhe_actividade.locais, tbl_detalhe_actividade.servicos, tbl_imagem_produto.id_imagem. tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6, tbl_sub_universo tbl_imagem_produto.actividade_id, tbl_actividade, tbl_detalhe_actividade, tbl_imagem_produto WHERE the tbl_actividade.id_actividade = tbl_imagem_produto.actividade_id AND tbl_actividade.id_actividade = tbl_detalhe_actividade.actividade_id ORDER OF RAND() ';

    $resultado = mysql_query ($sql)

    or die ("Nao faith possible realize a consulta.');

    $row2 = mysql_fetch_array ($resultado);

    ' $query ='SELECT * FROM tbl_banner ORDER OF RAND() ';

    $resultado = mysql_query ($query);

    echo "<?" XML version=\"1.0\"? " >

    < home_left_headline >

    < bgimg > '. $dir2. ". $row1 ['imagem1'].' < / bgimg >

    < / home_left_headline >

    < home_flash > ';

    While ($row = {mysql_fetch_array ($resultado))}

    "" echo "< swf headimg =" ' bgimg = "" msgimg = "" leftthrow = "" rightthrow = "" > < / swf > '; "

    }

    echo "< / home_flash > ';"

    echo "< promotop >

    "< img class =" "title =" "" url = "" > <! " [CDATA []] > < / promo >

    "< img class =" "title =" "" url = "" > <! " [CDATA []] > < / promo >

    < / promotop > ';

    mysql_close ($Link);

    you would not see this trace php if your php has been setup correctly.  Upload your files and repeat the test.

  • My 5s iphone is updated to 9.3.1 now it showing an error while it controls for software update. Error is "cannot verify the update ' so please help me solve the error

    Please help me solve the error message

    Connect the phone to a computer running iTunes 12.3.3 or later, with a cable and try check update

  • someone please help me restore the photos deleted from my camera sony cybershot

    someone please help me restore the photos deleted from my camera sony cybershot downloading on computer. Are there any hidden folder in drive g as basket in pc from where deleted photos can be restored

    N ° when the photos are removed from the Flash of the camera, they are gone.

    If you have not done something since then with the camera, you can download the software on your computer that may be able to recover deleted photos, or you can send the somewhere flash memory card that can do it for you.

  • Deleted his bus from Add/Remove programs by mistake please help me get the sound on my computer. Thank you.

    Deleted his bus from Add/Remove programs by mistake please help me get the sound on my computer. I had downloaded new software I wanted to delete and that which the sound bus (I think that's what it was called was another program added with this software, it is a blue icon) I feel stupid, but really would like help getting the sound back on my computer. I have Windows XP Professional. Thank you.

    Hi Rhonda327,

    Check if an error code is listed in the Device Manager:

    a. Click Start, click Run and then type devmgmt.msc

    b. expand sound, video and game controllers

    c. double-click the sub element

    1. run the system restore. Restore the system to the date when it was working fine. You can check the link for the steps below: how to restore Windows XP to a previous state: http://support.microsoft.com/kb/306084

    2. you can also run the patch from the link below: diagnose and automatically repair audio playback problems:http://support.microsoft.com/mats/no_sound/en-us

    Check out the links that gives you information about the installation of drivers from the manufacturer's Web site and also not to know the manufacturer or the supplier of the device below.

    Link:

    How to update a sound card driver in Windows Vista and Windows XP:http://support.microsoft.com/kb/166774

    Add the above suggestions, you can alos use windows update to install the drivers for the device. Link, please refer to:http://www.microsoft.com/windows/downloads/windowsupdate/learn/windowsxp.mspx

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Can someone please help to get the drivers/utilities on my Sony laptop to my bluetooth stack?

    Toshiba bluetooth stack, Sony & Windows 7

    "To continue or not to continue the reinstallation of the Toshibas enigma -" Toshiba bluetooth stack "-on a Windows 7 Pro upgrade Vista Pro.

    After a clean install, I lost my beautiful environment of Bluetooth on my laptop Sony vgn-bx51-vn in 2005 (a laptop that is like finding teeth of chicken on the Sony site).  I did a smart thing to keep the "Toshiba" Bluetooth file when I finally removed the windows.old folder after the re-installation.  Only smart because it allowed me to compare models with a pilot of 'original' newly downloaded and files utility (including msi files) Sony - the result was that there are a lot of files that is different.

    They newly installed drivers grumble horribly subject knowing incompatabilities with Win 7 (which is just a skin on top of Vista... or so I thought) and refuse to carry you.  They subsequently take you to Toshiba where you end by abandon the search for any useful help in spite of being a good faith user - no?

    Cut to the Chase.  Can someone please help to get the drivers/utilities on my Sony notebook by hook or crook.  NB. I hope just to aspire to the use of Bluetooth for something useful someday but am also irritated by the cul-de-sac which is software policy.

    Thank you very much - I.

    Ok.

    I mentioned that I had 2 problems - no Wifi and no BT.

    Wifi driver here http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&ProdId=2259&DwnldID=20790&ProductFamily=Wireless+Networking&ProductLine=Intel%C2%AE+Centrino%C2%AE+Wi-Fi+Products&ProductProduct=Intel%C2%AE+PRO%2fWireless+3945ABG+Network+Connectioneng#help

    And here's the fix for BT http://mikescloset.blogspot.co.uk/2011/12/dell-toshiba-bluetooth-350-and-windows.html

    Credit to Mike for the intelligent correction.

  • Please, help to recover the BIOS on the dv7-4120er (xe276ea)

    Please, help to recover the BIOS on the dv7-4120er (xe276ea).

    I updated my BIOS, but now the screen is off.

    I have no HP_TOOLS of recovery on the HARD drive partition and I did not backup usb with BIOS.

    How can I recover my BIOS?

    Please help me.

    Please see HP Notebook PC - Restore the BIOS, which States that you may be able to create a 'USB key with a HP_TOOLS volume' to Flash the BIOS. Please see http://h30434.www3.hp.com/t5/Other-Notebook-PC-Questions/How-to-use-the-HP-BIOS-update-uefi-utility/... for step by step instructions that can be used to create the 'USB key with a HP_TOOLS volume '. You may be able to skip 'step 4 '. Please see the HP Pavilion dv7-4120er Entertainment Notebook PC drivers page for the appropriate download needed for this procedure.

    Updated HP Notebook System BIOS (Intel processors)

    HP System Diagnostics UEFI

    HP Unified Extensible Firmware Interface (UEFI) support environment

    HP update BIOS UEFI

    If you have any other questions, feel free to ask.

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • Please help me choose the right format mask

    Hello everyone.

    We use Oracle 11.1.0.7 RAC.

    Please help me choose the right format for function to_char mask. On the left is a digital input, on the right is output desired:

    NUMBER VARCHAR2

    0,123 0.123

    12345678-12345678

    12345678.1234 12345678.1234

    12345678.123 12345678.123

    12.00000008 12.00000008

    WITH data AS
            (SELECT 0.123 n FROM DUAL
             UNION ALL
             SELECT 12345678 FROM DUAL
             UNION ALL
             SELECT 12345678.1234 FROM DUAL
             UNION ALL
             SELECT 12345678.123 FROM DUAL
             UNION ALL
             SELECT 12.00000008 FROM DUAL)
    SELECT
         TO_CHAR (n)
    FROM
         data;
    

    Thank you, Dmitry.

    Hi, Dmitri,

    Dmitry Dunaev wrote:

    Hello everyone.

    We use Oracle 11.1.0.7 RAC.

    Please help me choose the right format for function to_char mask. On the left is a digital input, on the right is output desired:

    NUMBER VARCHAR2

    0,123 0.123

    12345678-12345678

    12345678.1234 12345678.1234

    12345678.123 12345678.123

    12.00000008 12.00000008

    1. WITH the data AS
    2. (SELECT 0,123 n FROM DUAL)
    3. UNION ALL
    4. 12345678 SELECT FROM DUAL
    5. UNION ALL
    6. SELECT 12345678.1234 FROM DUAL
    7. UNION ALL
    8. SELECT 12345678.123 FROM DUAL
    9. UNION ALL
    10. SELECT THE DOUBLE 12.00000008)
    11. SELECT
    12. To_char (n)
    13. Of
    14. data;

    Thank you, Dmitry.

    I don't think that TO_CHAR can do by itself.  You should maybe call TO_CHAR and then manipulate the output a bit.

    Looks like TO_CHAR with 1 single argument does exactly what you want except when it returns a string starting with a decimal point, in which case you want to concatenate a '0'.  So call TO_CHAR with 1 argument, see if returns the string begins with a decimal point and, if so, put a '0' on it, like this:

    WITH got_str AS

    (

    SELECT n

    TO_CHAR (n) AS str

    FROM the data

    )

    SELECT n

    CASE

    WHAT LIKES str '. %'

    THEN "0". Str

    Of ANOTHER str

    END AS str0

    OF got_str

    ;

    Output:

    STR0 N

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

    0,123.123

    12345678-12345678

    12345678.1 12345678.1234

    12345678.1 12345678.123

    12.0000001 12.00000008

    What do you want for greater than-1 negative numbers?  You may need to make the CASE a little more complicated expression, like this:

    WITH got_str AS

    (

    SELECT n

    TO_CHAR (n) AS str

    FROM the data

    )

    SELECT n

    CASE

    WHAT LIKES str '. %'

    THEN "0". Str

    WHEN the str LIKE '. %'

    THEN '-0 "|" SUBSTR (str, 2)

    Of ANOTHER str

    END AS str0

    OF got_str

    ;

  • Unable to read the XML of vCO - permission denied

    Hello guys,.

    I was trying to read/write xml workflows vCO files:

    I'm kinda stuck here, and I'd like to see if someone else has already encountered this problem before, and how solve you this problem?

    No details on this issue will be appreciated.

    Thank you

    DH

    Odd.

    What is your use cases? This file should accessible from an external system or not? If this does not store the file in a resource element is a better option.

Maybe you are looking for