Oralce loading XML file

Hi all

Orientation help need to load the XML file into Oralce 11 g R2 db (NOT XMLDB).

I went through some threads in the forums itself, but nothing is close to my requirement.

MY requirement is

I have a shared folder where to get several xml files (based on the volume of data, the number of the file will be very, mean the file number is not static)

all of this data file must be loaded into an oracle table.

It looks like something as below should be done (but don't know how to implement this)

identify each file in the folder (the unix loop),

using oracle, load data from this xml file into the oracle table

Continue the process until we reach the last file in the folder.

could you please shed some light on this...

Thanks in advance.

Here is an example of the incision I think you are trying to do...  Notice that the upper level is driving the other levels (rankings, media).

Select hereby, wagneur, s.*

of temp_xml t

, XMLTable (XMLNamespaces (default 'http://www.abcs.com/fdp'), ' / Instrument_Roots/Instrument_Root ")

in passing t.object_value

columns

Path of varchar2 (100) Instrument_ID 'Instrument_ID '.

, Path of varchar2 (100) Deal_number 'Deal_number '.

, Path of varchar2 (100) Class_Code "Class_Code.

, Path of varchar2 (100) Class_Text "Class_Text.

, Path of xmltype rankings 'Instrument_Rankings '.

, Path of xmltype supports 'Instrument_Supports '.

) l

, XMLTable (XMLNamespaces (default 'http://www.abcs.com/fdp'),

' / Instrument_Rankings/Instrument_Ranking.

in passing l.Rankings

columns

Path of varchar2 (100) Ranking_Class_Number 'Ranking_Class_Number '.

, Path of varchar2 (100) Instrument_ID 'Instrument_ID '.

, Path of xmltype attributes 'Instrument_Ranking_Attributes '.

) d

, XMLTable (XMLNamespaces (default 'http://www.abcs.com/fdp'),

' / Instrument_Supports/Instrument_Support.

in passing l.Supports

columns

Path of varchar2 (100) Instrument_ID 'Instrument_ID '.

, Path of varchar2 (100) Support_ID 'Support_ID '.

, Path of varchar2 (100) Organization_ID 'Organization_ID '.

, Path of varchar2 (100) Organization_Role_Code 'Organization_Role_Code '.

, Path of varchar2 (100) Ranking_Class_Number 'Ranking_Class_Number '.

) s

Tags: Database

Similar Questions

  • Error loading XML file in the column of XMLTYPE through SQL loader

    Hi gurus,

    I am trying to load the XML file into the column of XMLTYPE through SQL Loader but the errors themselves. Here are the details

    Databases
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 24 17:17:55 2012
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    The table structure
    CREATE TABLE TH_XML
    (
      COL_ID_1   VARCHAR2(100 BYTE),
      IN_FILE_1  XMLTYPE
    )
    XMLTYPE IN_FILE_1 STORE AS CLOB (TABLESPACE SMDAT)
    XML (simple.xml) file
    <?xml version="1.0"?>
     <catalog> 
     <book id="bk101"> 
               <author>Some Author1</author> 
               <title>Some Title1</title> 
               <genre>Computer</genre> 
               <price>44.95</price> 
               <publish_date>2000-10-01</publish_date> 
               <description>creating applications</description> 
       </book> 
       <book id="bk112"> 
               <author>Some Author2</author> 
               <title>Some Title2</title> 
               <genre>Computer</genre> 
               <price>49.95</price> 
               <publish_date>2001-04-16</publish_date> 
               <description>Microsoft Visual Studio 7 is explored in depth</description> 
    </book> 
    </catalog>
    Control file
    LOAD DATA
    INFILE 'c:\simple.xml'
    APPEND
    INTO TABLE TH_XML 
    XMLTYPE(in_file_1)
    (
    col_id_1 filler  CHAR (100),
    in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
    )
    LOG file
    SQL*Loader: Release 10.2.0.3.0 - Production on Tue Jul 24 16:42:25 2012
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Control File:   c:\my_file.ctl
    Data File:      c:\simple.xml
      Bad File:     c:\simple.bad
      Discard File:  none specified
     
     (Allow all discards)
    
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    
    Table TH_XML, loaded from every logical record.
    Insert option in effect for this table: APPEND
    
       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    COL_ID_1                            FIRST   100           CHARACTER            
      (FILLER FIELD)
    IN_FILE_1                         DERIVED     *  EOF      CHARACTER            
        Static LOBFILE.  Filename is c:\simple.xml
    
    Record 1: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 2: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 3: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 4: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 5: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 6: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 7: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 8: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 9: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 10: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 11: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 12: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 13: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 14: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 15: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 16: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 17: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 18: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 19: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 20: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 21: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 22: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 23: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    
    Table TH_XML:
      0 Rows successfully loaded.
      23 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    
    
    Space allocated for bind array:                    256 bytes(64 rows)
    Read   buffer bytes: 1048576
    
    Total logical records skipped:          0
    Total logical records read:            23
    Total logical records rejected:        23
    Total logical records discarded:        0
    
    Run began on Tue Jul 24 16:42:25 2012
    Run ended on Tue Jul 24 16:42:26 2012
    
    Elapsed time was:     00:00:00.23
    CPU time was:         00:00:00.05
    I get error ORA-00904: "SYS_NC_ROWINFO$": invalid identifier in the logfile (mentioned above). Could someone help me know where I am doing wrong?

    Thanks in advance.

    Published by: 876991 on 24 July 2012 14:18

    Hello

    This remove the control file:

    XMLTYPE(in_file_1)
    

    It is used only if the target table is an array of XMLType object.

    For an XMLType column LOBFILE is sufficient, for example:

    LOAD DATA
    INFILE *
    APPEND INTO TABLE TH_XML
    (
     col_id_1  CHAR (100),
     in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
    )
    begindata
    MYID1
    

    It tells SQL * Loader data consisting of one record with COL_ID_1 = "MYID1" and content = "c:\simple.xml" IN_FILE_1

    SQL> CREATE TABLE TH_XML
      2  (
      3    COL_ID_1   VARCHAR2(100 BYTE),
      4    IN_FILE_1  XMLTYPE
      5  );
    
    Table created.
    
    SQL> host sqlldr control=test.ctl
    Username:dev
    Password:
    
    SQL*Loader: Release 11.2.0.2.0 - Production on Mer. Juil. 25 01:30:46 2012
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 1
    
    SQL> set long 5000
    SQL> column col_id_1 format a15
    SQL> select * from th_xml;
    
    COL_ID_1        IN_FILE_1
    --------------- --------------------------------------------------------------------------------
    MYID1           
                     
                     
                               Some Author1
                               Some Title1
                               Computer
                               44.95
                               2000-10-01
                               creating applications
                       
                       
                               Some Author2
                               Some Title2
                               Computer
                               49.95
                               2001-04-16
                               Microsoft Visual Studio 7 is explored in depth
                    
     
    
  • custom preloader (loading xml files)

    Hello :)

    I want to create the preloader to load xml before application initialization files, I havn't could find no solution on any internet site :(?

    I tried to extend the DownloadProgressBar and then load the xml in the constructor, but systemManager starts initialization of my Application right after that, and before that the preloader is finished, how can I force him to wait until I'm done with loading XML?

    Thanks for any help :) I hope someone can help me :)

    My request and the rest of my containers needs these xml files to initialize.

    Thank you once again :)

    Kind regards
    HW2002

    For other issues with the same problem, which is a lot :)

    You can load your XML files inside createChildren() (), you must override it in your application class and once that the XML file is loaded, call you super.createChildren ();

    and it's all :)

  • Loading XML file where data structure may vary

    Hi guys,.

    I'm trying to load a XML data file in an Oracle table, with some success, but it will fail to load certain lines when an element is missing. Here is an example of two rows of data:

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

    < ReportDetails >

    < ReportRequest >

    < ExtractDate > 25/03/2010 < / ExtractDate >

    < CaseNoReportRequest > 1234567 < / CaseNoReportRequest >

    individual details < IndividualDetailsText > < / IndividualDetailsText >

    < IndividualDetails >

    < CaseNoIndividual > 1234567 < / CaseNoIndividual >

    < title > < /title > MR

    <>men < / Type >

    Steve < FirstName > < / name >

    < Name > test < / name >

    Detail of < occupation > < / Occupation >

    < / IndividualDetails >

    Information about insolvency < CaseDetailsText > < / CaseDetailsText >

    < CaseDetails >

    < CaseNoCase > 1234567 < / CaseNoCase >

    STEVE TEST < CaseName > < / CaseName >

    Court of County of Preston < > < / Court >

    Bankruptcy of < CaseType > < / CaseType >

    < / CaseDetails >

    < InsolvencyContactText > of insolvency services contact information < / InsolvencyContactText >

    < InsolvencyContact >

    < CaseNoContact > 1234567 < / CaseNoContact >

    Blackpool < InsolvencyServiceOffice > < / InsolvencyServiceOffice >

    Bureau of investigation < contact > < / Contact >

    < / InsolvencyContact >

    < / ReportRequest >

    < ReportRequest >

    < ExtractDate > 25/03/2010 < / ExtractDate >

    < CaseNoReportRequest > 8901234 < / CaseNoReportRequest >

    individual details < IndividualDetailsText > < / IndividualDetailsText >

    < IndividualDetails >

    < CaseNoIndividual > 8901234 < / CaseNoIndividual >

    < title > < /title > MISS

    Female < sex > < / Type >

    Francesca < FirstName > < / name >

    < Name > test < / name >

    Clerk Administration < occupation > < / Occupation >

    < / IndividualDetails >

    < BankruptcyRestrictionsDetails >

    < RestrictionsType > BANKRUPTCY RESTRICTIONS ORDER (BRO) < / RestrictionsType >

    < RestrictionsStartDate > 19/07/2005 < / RestrictionsStartDate >

    < RestrictionsEndDate > 19/07/2012 < / RestrictionsEndDate >

    < / BankruptcyRestrictionsDetails >

    Practitioner of the insolvency of < InsolvencyPractitionerText > contact information < / InsolvencyPractitionerText >

    < IP >

    < CaseNoIP > 8901234 < / CaseNoIP >

    < MainIP > Kevin Morrison < / MainIP >

    < /IP >

    < InsolvencyContactText > of insolvency services contact information < / InsolvencyContactText >

    < InsolvencyContact >

    < CaseNoContact > 8901234 < / CaseNoContact >

    Cardiff < InsolvencyServiceOffice > < / InsolvencyServiceOffice >

    Bureau of investigation < contact > < / Contact >

    < / InsolvencyContact >

    < / ReportRequest >

    < / ReportDetails >

    It is the PL/SQL that I use to try to load it:

    DECLARE

    acct_doc XMLTYPE: = XMLTYPE (BFILENAME('FLA','data_file.xml'), NLS_CHARSET_ID ('AL32UTF8'));

    BEGIN

    INSERT INTO target_table)

    extract_date,

    case_no_report_request,

    case_no_individual,

    title,

    gender,

    first name,

    family name,

    occupation,

    case_no_case,

    case_name,

    Court,

    case_type,

    case_no_contact,

    insolvency_service_office,

    contact

    )

    SELECT x1.extractdate,

    x1.casenoreportrequest,

    X2.casenoindividual,

    X2.title,

    x 2. Gender,

    x 2. FirstName,

    x 2. Surname,

    X2.occupation,

    x 3 .case_no_case,

    x 3 .case_name,

    X3.Court,

    x 3 .case_type,

    x 4 .case_no_contact,

    x 4 .insolvency_service_office,

    X4.contact

    FROM XMLTABLE)

    ' / ReportDetails/ReportRequest.

    PASSAGE acct_doc

    COLUMNS header_no to ORDINALITE,

    extractdate PATH VARCHAR2 (10) "ExtractDate."

    casenoreportrequest NUMBER of path 'CaseNoReportRequest '.

    ) x 1,

    XMLTABLE)

    "$d/ReportDetails/ReportRequest [$hn] / ' IndividualDetails"

    PASSAGE acct_doc "d."

    x 1 .header_no LIKE "hn".

    Casenoindividual COLUMN NUMBER PATH "CaseNoIndividual."

    title VARCHAR2 (20) PATH "Title."

    sex VARCHAR2 (20) PATH "Gender."

    First name VARCHAR2 (30) PATH "First name",

    name VARCHAR2 (30) PATH "name."

    occupation VARCHAR2 (50) PATH "Profession".

    ) x 2,

    XMLTABLE)

    "$d/ReportDetails/ReportRequest [$hn] / ' CaseDetails"

    PASSAGE acct_doc "d."

    x 1 .header_no LIKE "hn".

    Case_no_case COLUMN NUMBER PATH "CaseNoCase."

    case_name PATH VARCHAR2 (50) "CaseName"

    VARCHAR2 (40) path 'Court',

    case_type PATH VARCHAR2 (40) "CaseType.

    ) x 3.

    XMLTABLE)

    "$d/ReportDetails/ReportRequest [$hn] / InsolvencyContact'"

    PASSAGE acct_doc "d."

    x 1 .header_no LIKE "hn".

    Case_no_contact COLUMN NUMBER PATH "CaseNoContact."

    insolvency_service_office PATH VARCHAR2 (20) "InsolvencyServiceOffice."

    Contact PATH VARCHAR2 (30) "Contact".

    ) x 4;

    COMMIT;

    END;

    The first row of the loads fine, but the second row is not at all responsible. I expected he would charge what information there but with NULL values for the missing "CaseDetails" element but it charge nothing at all. If I change the data and manually add it in an element 'CaseDetails', line load. Can someone explain to me how I can get all the lines to load even if some parts are missing?

    Wrong approach altogether.

    There is no need to join via a positional predicate in this case, just use a single query:

    SQL> SELECT x.*
      2  FROM XMLTABLE (
      3         '/ReportDetails/ReportRequest'
      4         PASSING xmltype(bfilename('XML_DIR','data_file.xml'), nls_charset_id('AL32UTF8'))
      5         COLUMNS extractdate                VARCHAR2(10) PATH 'ExtractDate'
      6               , casenoreportrequest        NUMBER       PATH 'CaseNoReportRequest'
      7               , casenoindividual           NUMBER       PATH 'IndividualDetails/CaseNoIndividual'
      8               , title                      VARCHAR2(20) PATH 'IndividualDetails/Title'
      9               , gender                     VARCHAR2(20) PATH 'IndividualDetails/Gender'
     10               , firstname                  VARCHAR2(30) PATH 'IndividualDetails/FirstName'
     11               , surname                    VARCHAR2(30) PATH 'IndividualDetails/Surname'
     12               , occupation                 VARCHAR2(50) PATH 'IndividualDetails/Occupation'
     13               , case_no_case               NUMBER       PATH 'CaseDetails/CaseNoCase'
     14               , case_name                  VARCHAR2(50) PATH 'CaseDetails/CaseName'
     15               , court                      VARCHAR2(40) PATH 'CaseDetails/Court'
     16               , case_type                  VARCHAR2(40) PATH 'CaseDetails/CaseType'
     17               , case_no_contact            NUMBER       PATH 'InsolvencyContact/CaseNoContact'
     18               , insolvency_service_office  VARCHAR2(20) PATH 'InsolvencyContact/InsolvencyServiceOffice'
     19               , contact                    VARCHAR2(30) PATH 'InsolvencyContact/Contact'
     20       ) x ;
    
    EXTRACTDATE CASENOREPORTREQUEST CASENOINDIVIDUAL TITLE    GENDER     FIRSTNAME     SURNAME    OCCUPATION              CASE_NO_CASE CASE_NAME    COURT                 CASE_TYPE    CASE_NO_CONTACT INSOLVENCY_SERVICE_OFFICE CONTACT
    ----------- ------------------- ---------------- -------- ---------- ------------- ---------- ----------------------- ------------ ------------ --------------------- ------------ --------------- ------------------------- ---------------
    25/03/2010              1234567          1234567 MR       Male       Steve         Test       Retail                       1234567 STEVE TEST   Preston County Court  Bankruptcy           1234567 Blackpool                 Enquiry Desk
    25/03/2010              8901234          8901234 MISS     Female     Francesca     Test       Administration Clerk                                                                         8901234 Cardiff                   Enquiry Desk
    
  • Problem loading XML file on the server hosting

    I have a question wher the lods of XML data very well file and displays on my server testingg but returns "undefined" when uploaded to the server hosting.

    The page can be found at http://www.merryheartpuppets.com/index3.html

    The ActionScript for the clip is included below:

    The SWF works! and the xml data are read and displayed correctly. I always get an error when you try to view the slideshow.xml in the browser even with the changes.

    I think that the happy ending is the result of several things:
    1 make the changes suggested by GWD and
    2 pointing the domain to the appropriate folder. For some reason, the hosting server was not pointing to the folder to which I had originally put in it. Then, I changed it. But the change doesn't take effect for some reason any. In any case, after further investigation, I got the domain pointing to the appropriate subfolder and the swf file is working now.

    Thank you all for your patience to input and advice. I could not successfully achieved this without your intervention. TX!

  • Cannot load the local xml file from swf

    Hello!

    I have next construction

    (1) in ai3r app to load the SWF by HTMLLoader

    (2) I'm trying to load local xml file in swf. No error and no results.

    Application of AIR-> SWF-> load xml

    When I load xml file site, everything is ok, but when I load just from local file , nothing happens

    and when I load the local file with swf but everything is ok in the browser (firefox)

    for loading xml in a I use the following path: file:///folder_name/xml_file_name.xml

    Help me please!

    Did you write the SWF?  Some sovereign wealth funds will remove errors.

    Why use HTMLLoader?  Who can load it with different security rules.  Content browser often cannot access local content.

  • Loading multiple Xml files.

    Ive got a menu based on xml and xml Photo Gallery based on the same chassis on my calendar.
    When I try to preview the film only the photogallery load xml file.

    I was wondering if anyone knows a method to load two xml files at a time or one after the other...

    Ive been after Jacques tutorials for menu xml and xml photo gallery... my code is very similar to them.
    Thanks in advance.
    Chris.

    Simply create separate XML objects.

    myXmlMenu = new XML();
    myXmlGallery = new XML();
    myXmlMenu.load (...)
    myXmlGallery.load (...)
    etc.

  • Getting data from several XML files

    Could someone please shed some light on the best way to read several external xml files through Flex? We haveabout 100 xml files (of which few are accessible by users).
    I tried to implement the following generic function which takes a file name, but when debugging it, it seems that the Manager never gets call after executing the line of service.send ()! I would much appreciate your help!

    public void fetchFileContent(fileName:String):void {//this method is called when you click on a button
    var service: HTTPService = new HTTPService();
    service. URL = "filePath /" + file name;
    service.useProxy = false;
    service.resultFormat = 'e4x ';
    service.addEventListener ("result", fileRetrievalHandler)
    service. Send();
    }

    public void fileRetrievalHandler(evnt:ResultEvent):void {}
    fileContent = evnt.result.feed; This line is never executed
    }

    "miglara" wrote in message
    News:glhase$5sr$1@forums. Macromedia.com...
    > Could someone please shed some light on the best way to read more
    > external xml files through Flex? We haveabout 100 xml files (of
    > who
    (> only little is accessed randomly by users).
    > I tried to implement the following generic function which takes a
    > filename
    > but when debugging it, it seems that the Manager never gets call after
    > executing the line of service.send ()! I would much appreciate your help!
    >
    > public void fetchFileContent(fileName:String):void {//this method is
    > called by clicking on a button
    > var service: HTTPService = new HTTPService();
    > service.url = ' filePath / "+ file name;
    > service.useProxy = false;
    > service.resultFormat = 'e4x ';
    > service.addEventListener ("result", fileRetrievalHandler)
    > service.send ();
    > }
    >
    > public void fileRetrievalHandler(evnt:ResultEvent):void {}
    > fileContent = evnt.result.feed; This line is never executed
    > }

    Try to add a fault handler and see if that goes off. Also, since you are
    use HTTPService rather than URLLoader, you should know that this will probably not
    already worked for your development environment, unless you have either changed the
    Directory of output to go on the server or you have changed some compiler flags
    to allow you to get local and access to the network at the same time. That's why
    I always use URLLoader to load XML files to relative path... it just
    works without my need to change anything.

  • [Database Toolbox] possibility to Load From xml file in Labview and then in the database

    Before you write in my database, I want to save it and reload if the user wants to cancel the new charge that can last several minutes.

    If he cancels the load I get back my previous database data.

    I managed to save my database in XML through the "DB tools SaveRecordSet To File" VI. This VI records directly contains my database table in the xml file. And finally, I only if the other VI to load file will do the same thing, means load the file and save it in my database but it gives just a recordset in labview.

    Question: is it possible just to load the xml file into the database directly through Labview?

    Why, finally, these screws do not have the same behavior?

    I don't know, but I just thought I would chime, that if you fail to do with LabvIEW, you might want to look by making your writing in a 'Transaction' database, if your DBM takes in charge (most except MS Access)

  • Loading data from the external XML file

    Hello people!

    I have a XML file on my server, updated by cron every 10 minutes and I want to load data to my webworks her application, but the jquery ajax function do not support the folded areas. So here's my question - how should this information? Can I somehow download this file and then use ajax?

    Welcome!

    in your config.xml file, add an authorization to access your server:

    subdomains of http://www.yourserver.com"="true"/ >

    This will get by cross-origin issues.

  • With respect to the loading of the XML file

    Hello Expert,

    I have a question about loading XML using ODI, actually I am new in ODI. I need to load a sample file is given below. While trying to configure the physical connection, it throws an exception that is:

    1 ODI-40844: could not generate the DTD because the file could not be created. Make sure you have write permissions in the directory. (If I select Agent Local)

    or

    2 SAXException: ODI-40786: prefix not found: {0} xsi (if I select the autonomous agent only).

    I need to load the information in tables oracle as the row column data. Let me also know how to generate the DTD XML file to use in ODI.

    Setting that I used for the above error message:

    JDBC driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver

    JDBC URL: jdbc:snps:xml?f=/u03/udc/Assoc_PLDB_2015-08-19_0143-08_19_2015-03_45_00.xml

    and the example file is (total file size is nearly 4 GB and contains several files):

    file 1:

    " < operator xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance 'xsi:noNamespaceSchemaLocation="./xml/Iden_0_2015-08-18_0006-schema.xsd' >

    < organizational unit = 'identities' value >

    < dc value = "IMSI" >

    < entryDS > 0 < / entryDS >

    < > 111 nodeId < / nodeId >

    < structuralObjectClass > CUDBdcObject < / structuralObjectClass >

    < /DC >

    < dc value = "MSISDN" >

    < entryDS > 0 < / entryDS >

    < > 111 nodeId < / nodeId >

    < structuralObjectClass > CUDBdcObject < / structuralObjectClass >

    < /DC >

    < dc value = "imsi" >

    < value IMSI = "418400100020119" >

    alias of < structuralObjectClass > < / structuralObjectClass >

    < objectClass > < / objectClass >

    < entryDS > 0 < / entryDS >

    < aliasedObjectName > mscId = aaaaaaa001aaaaaaa418400100020119, ou = multiSCs, dc = kor < / aliasedObjectName >

    < / IMSI >

    < value MSISDN = "9647503210441" >

    < serv value = "DSP" >

    < aliasedObjectName > serv = CSPS, assocId = dd910994c7e447baa9cd5cc90f565a51, OU = associations, dc = kor < / aliasedObjectName >

    < entryDS > 0 < / entryDS >

    < > 111 nodeId < / nodeId >

    alias of < structuralObjectClass > < / structuralObjectClass >

    < / serv >

    < serv value = "IMS" >

    < aliasedObjectName > serv = IMS, mscId = aaaaaaa001aaaaaaa418400108041546, or = multiSCs, dc = kor < / aliasedObjectName >

    < entryDS > 0 < / entryDS >

    < > 111 nodeId < / nodeId >

    alias of < structuralObjectClass > < / structuralObjectClass >

    < / serv >

    < entryDS > 0 < / entryDS >

    < > 111 nodeId < / nodeId >

    organizationalUnit < structuralObjectClass > < / structuralObjectClass >

    < / MSISDN >

    < value MSISDN = "9647503227807" >

    < serv value = "DSP" >

    < aliasedObjectName > serv = CSPS, assocId = 0b6c78a0328e4c708e818fc780923970, OU = associations, dc = kor < / aliasedObjectName >

    < entryDS > 0 < / entryDS >

    < > 111 nodeId < / nodeId >

    alias of < structuralObjectClass > < / structuralObjectClass >

    < / serv >

    < entryDS > 0 < / entryDS >

    < > 111 nodeId < / nodeId >

    organizationalUnit < structuralObjectClass > < / structuralObjectClass >

    < / MSISDN >

    < entryDS > 0 < / entryDS >

    < > 111 nodeId < / nodeId >

    < structuralObjectClass > CUDBdcObject < / structuralObjectClass >

    < /DC >

    < entryDS > 0 < / entryDS >

    < > 111 nodeId < / nodeId >

    organizationalUnit < structuralObjectClass > < / structuralObjectClass >

    < /or >

    < / operator >

    Please tell us how can I start to load the xml in the ODI directory files. I'd also appreciate it if you can gimme the links or documents to read and understand how to load xml. I tried oracle site and the steps does not work in ODI.

    Sincere greetings,

    Lili.

    Hi 860031,

    Try:

    JDBC URL: jdbc:snps:xml?f=/u03/udc/Assoc_PLDB_2015-08-19_0143-08_19_2015-03_45_00.xml& s = OPERA & re = operator

    Physical schema:

    Schema: OPERA

    Scheme of work: OPERA

  • iOS: problem with loading the content of an xml file placed on a server

    So, I have an app that loads a few small things (pictures and text) of a xml/php file on the server. Everything works fine on both android and in the flash debugger, but when I install the ipa file on my iPhone my IOErrorEvent displays an error message. When the xml file and example photos come with the app (they are not on the server, but in the ipa file) everything works perfectly. There is something about iOS that prevents me to load all the data from the server, it seems. There must be a way around it.

    I would be grateful for advice.

    Kind regards

    Array must be table.

  • Load the XML file into Oracle external Table


    I load the data from the XML file into an intermediate table Oracle using external Tables.

    Let's say below, it is my XML file

    < header >
    < A_CNT > 10 < / A_CNT >
    < E_CNT > 10 < / E_CNT >
    < AF_CNT > 10 < / AF_CNT >
    < / header >
    < student >
    <>students-details
    < Student_info >
    < Single_Info >
    < ID > 18 / < ID >
    New York < City > < / City >
    < country > United States < / country >
    < Name_lst >
    < Student_name >
    Samuel < name > < / name >
    Paul < Last_name > < / Last_name >
    < DOB > 19871208 < / DOB >
    Aware of < RecordStatus > < / RecordStatus >
    < / Student_name >
    < Student_name >
    Samuel < name > < / name >
    Paul < Last_name > < / Last_name >
    < DOB > 19871208 < / DOB >

    < TerminationDt > 20050812 < / TerminationDt >
    History of < RecordStatus > < / RecordStatus >
    < / Student_name >
    < / Name_lst >
    < Personal_Info >
    <>men < / Type >
    < 27 > < / Age >
    < / Personal_Info >
    < / Single_Info >
    < / Student_info >

    < student - register >
    class < A >
    < info >
    < detail >
    < ID student > 18 < / student >
    EE < major > < / Major >
    < course-Grades >
    < course > VLSI < / course >
    < degree > 3.0 < / Grade >
    < / course-Grades >
    < course-Grades >
    < course > nanotechnology < / course >
    < degree > 4.0 < / Grade >
    < / course-Grades >
    < / details >
    < detail >
    < ID student > 18 < / student >
    THIS < major > < / Major >
    < / details >
    < / info >
    class < A >
    < Student_Enrol >
    <>students-details
    < student >

    I load this XML data file into a single table using an external Table. Could someone help me please with coding.

    Thank you

    Reva

    Could you please help me how to insert my XML content into that.

    Same as before, try a plain old INSERT:

    insert into xml_pecos

    values)

    XmlType (bfilename ('XML_DIR', "test.xml"), nls_charset_id ('AL32UTF8'))

    );

    But you'll probably hit the same limitation as with the binary XMLType table.

    In this case, you can use FTP to load the file as a resource in the XML DB repository.

    If the XML schema has been registered with the hierarchy enabled then the file will be automatically inserted into the table.

    Could you post the exact statement that you used to save the scheme?

    In the meantime, you can also read this article, I did a few years ago, it covers the XML DB features that may be useful here, including details on how to load the file via FTP:

    https://odieweblog.WordPress.com/2011/11/23/Oracle-XML-DB-a-practical-example/

    And documentation of the course: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb06stt.htm#ADXDB4672

  • Loading the XML file with the missing elements dynamically by ODI

    Hi guys,.

    I have the XML with two nodes Employee and address below. On a daily basis, sometimes the address element might not come from the source xml file, but my interface has columns mapped to the elements of the address, and that is why it may fail because of the source element is not found in the file or data could not get charged because the State 'and' in the sql query that is generated between the employee and address elements.  Is there a way where I can load the data dynamically where I can search in the file only for items (used) present and dynamically loading data only for these items?

    XML file:

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

    < EMP >

    < Empsch >

    < employee >

    < EmployeeID 12345 > < / EmployeeID >

    < original > t < / initials >

    John < name > < / LastName >

    DOE < FirstName > < / name >

    < / employee >

    < address >

    < > 12345 as WorkPhone < / as WorkPhone >

    < WorkAddress > test 234 < / WorkAddress >

    < / address >

    < / Empsch >

    < / EMP >

    Thank you

    Fabien Tambisetty

    I managed to solve it by using left outer joins, and in referring to the structure of the table of the XSD

  • How to load an XML file and save it as a file fm

    Hi Experts,

    I have a bunch of XML files in a folder. I want to make is that I want iteratively, load the xml using a StructuredApplication and save it as a file FM. I was able to sucessfully load the XML file, but I'm having trouble to save a file of FM.

    Here is the code I wrote so far:

    If (sourceFolder! = null) {/ / If a valid file is selected}

    files = new Array();

    fileType = "*.xml";

    files = sourceFolder.getFiles (fileType);  Download all the files that match the pattern

    If (files.length > 0) {/ / get the destination to save the files}

    destFolder = Folder.selectDialog ('Select the folder where you want to save the converted XML files.', ' ~');

    for (var i = 0; i < files.length; i ++) {}

    Set the options to open the XML file.

    var openParams = GetOpenDefaultParams();

    var j = GetPropIndex (openParams, Constants.FS_OpenAsType);

    . propVal.ival openParams [j] = Constants.FV_TYPE_XML;

    j = GetPropIndex (openParams, Constants.FS_StructuredOpenApplication);

    . propVal.sval openParams [j] = "XML Snpsbook";

    j = GetPropIndex (openParams, Constants.FS_FileIsOldVersion);

    . propVal.ival openParams [j] = Constants.FV_DoOK;

    j = GetPropIndex (openParams, Constants.FS_FontNotFoundInDoc);

    . propVal.ival openParams [j] = Constants.FV_DoOK;

    j = GetPropIndex (openParams, Constants.FS_FileIsInUse);

    . propVal.ival openParams [j] = Constants.FV_DoCancel;

    j = GetPropIndex (openParams, Constants.FS_AlertUserAboutFailure);

    . propVal.ival openParams [j] = Constants.FV_DoCancel;

    var returnParams = new PropVals();

    I'M NOT ABLE TO GET THIS LINE TO RUN. sourceDoc RETURNS a REFERENCE of OBJECT INVALID.

    sourceDoc = Open (files [i] .name, openParams, returnParams);  Returns the document object

    Alert (SourceDoc.Name);

    Function to save. XML file. Extension of the FM

    var saveParams = GetSaveDefaultParams();

    var returnParamsp = new PropVals();

    Change the extension .xml FM

    var k = GetPropIndex (saveParams, Constants.FS_FileType);

    saveParams [k].propVal.ival = Constants.FV_SaveFmtBinary;

    saveAsName = sourceDoc.name.replace (/ \.) [ ^\.\\]+$/,".fm");

    var saveInFile = record (saveAsName, saveParams, returnParamsp);  Save as file FM

    saveInFile = new file (destFolder + ' / ' + targetFile);

    saveInFile.close ();  Close file

    }

    Alert ("the files are saved in the FM to ' + destFolder");

    } else {}

    Alert ('no matching files found!');

    }

    }

    Hi reda,.

    You are very close, but there are a few critical flaws in your code that will prevent the proper functioning:

    -Your paths in string literals must have sequences to escape the backslashes. A backslash character is treated as an adverb in an escape sequence, so those need to be escaped themselves. For example: "C:\\Users\\rajrev\\file.xml."

    -Your OpenXMLFile () function does not return anything, then the original DocumentSource variable never gets made.

    -It is better to use the ObjectValid() method to test a valid object of FM.

    -I am not an expert of regular expression, but I can't understand the logic in your replace() method, to create the new path of the file. In addition, the property "name" of the fileObject is invalid, it must be 'name '. I think that there are simpler ways to do.

    -Your call to the Save() method is incorrect. It should be fileObject.Save (saveAsName, saveParams, returnParamsp).

    All that being said, here is a quick review, without comment, that works for me:

    var sourceDoc = openXmlFile("C:\\Users\\rajrev\\file.xml","XML snpsbook");
    if (sourceDoc.ObjectValid()) {
    
        var path = sourceDoc.Name;
        var filename = path.substring((path.lastIndexOf("\\") + 1), path.length);
        filename = filename.replace(".xml", ".fm");
    
        path = path.substring(0, (path.lastIndexOf("\\") + 1));
        path = path + "transformed_files\\" + filename;
    
        //path testing
        //alert(path);
    
        saveToFm(sourceDoc, path);
        sourceDoc.Close(0);
    }
    
    // Function to open and XML file
    function openXmlFile(filePath, structApp) {
        var openParams = GetOpenDefaultParams();
        var i = GetPropIndex(openParams, Constants.FS_OpenAsType);
        openParams[i].propVal.ival = Constants.FV_TYPE_XML;
        i = GetPropIndex(openParams, Constants.FS_StructuredOpenApplication);
        openParams[i].propVal.sval = structApp;
        var  returnParams = new PropVals();
        var doc = Open(filePath, openParams, returnParams);
        return doc;
    }
    
    //Function to save the opened XML as an FM file
    function saveToFm(fileObject, savePath) {
        var saveParams = GetSaveDefaultParams();
        var i = GetPropIndex(saveParams, Constants.FS_FileType);
        saveParams[i].propVal.ival = Constants.FV_SaveFmtBinary;
        var saveAsName = savePath;
        var returnParamsp = new PropVals();
        fileObject.Save(saveAsName, saveParams, returnParamsp);
    }
    

Maybe you are looking for