How to load xml as input

Hello


I invoke a webservice. He needs the input in the form of XML.
The web service contains only an input element.
He accepts the total captured as xml through unique element.



The XML must be that the web service is like that

<? XML version = "1.0"? >
rowset <>
< LINE number = "1" >
< header >
< header_ROW num = "1" >
< MessageId > 20120804000004 < / MessageId >
XXX < SenderId > < / SenderId >
YYY < RecipientId > < / RecipientId >
< DateTime > 20120804170600 < / DateTime >
< / header_ROW >
< / header >
< body >
< body_ROW num = "1" >
< ackRequired > true < / ackRequired >
< recognition > NACK < / receipt >
< ship >
< ship_ROW num = "1" >
< tagid > 0 < / tagid >
< PlateNumber > 0 < / PlateNumber >
< DepartureTime > 0 < / DepartureTime >
< / ship_ROW >
< / ship >
<>container
< Container_ROW num = "1" >
mmy7654 < Containerid > < / Containerid >
< CustomerDetails >
< CustomerDetails_ROW
NUM = "1" >
< HoldType > OFFS < /.
HoldType >
DDD < CustomerStatus > < / CustomsStatus >
< CustomerRefNr > 6983574 < / CustomsRefNr >
zzz < InspectionDetail > < / InspectionDetail >
< / CustomerDetails_ROW >
< / CustomerDetails >
< ContainerDetails >
< ContainerDetails_ROW
NUM = "1" >
< category > 0 < / category >
< status > 0 < / status >
< / ContainerDetails_ROW >
< / ContainerDetails >
< / Container_ROW >
< / container >
< / body_ROW >
< / body >
< / ROW >
< / LINES >


based on this xml file, I created the xml schema.how, we can transmit these data to the item unique target of the web service as xml. Please me adivse

send these data to the target element web service

If the element is of type string, you can use XPath extension function get-good-as-string
http://docs.Oracle.com/CD/E15523_01/integration.1111/e10224/bp_appx_functs.htm#autoId28

Assign, copy operation, expression oraext:get - content-as-string ($data) to 'unique element of the webservice to target '.

Assuming $data contains your xml document...

If the item is a xsd: any, so it's just a simple assignment...

See you soon,.
Vlad

Tags: Fusion Middleware

Similar Questions

  • How to load xml with base64 big element using sqlldr

    Hello
    I'm trying to load xml data into Oracle 10 g 2. I want to use tool standard sqlldr if possible.
    (1) I recorded my schema successfully:
    -Put the 6kbytes schema in a table
    - and
    DECLARE
    schema_txt CLOB.
    BEGIN
    SELECT the text IN schema_txt patterns;
    DBMS_XMLSCHEMA.registerschema ("uddkort.xsd", schema_txt);
    END;
    -Success: I can create table like:
    CREATE TABLE XMLTYPE XmlTest
    XMLSCHEMA 'uddkort.xsd '.
    ELEMENT 'profile '.
    ;
    -USER_XML_TABLES shows:
    XMLSCHEMA, SCHEMA_OWNER, NOM_ELEMENT, TABLE_NAME, STORAGE_TYPE
    "XMLTEST", "uddkort.xsd", "THISE", "profile", "OBJECT-RELATIONAL".

    (2) how can I load XML data into that?
    -An element of the schema is < xs: element name = "billede" type = "xs: base64Binary" minOccurs = "0" / >
    -This data field may be 10kbytes or more

    I tried many control files - search the net but no luck so far.
    Any suggestions?
    / Christmas, DK

    I regret - it seems, Miss me some basic understanding here (XBD is new to me...):

    Reread this part of the documentation on the XML to mappings of SQL types:
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14259/xdb05sto.htm#sthref831

    When you save the relational storage schema object, Oracle creates SQL object types to support the underlying structure.
    In particular (see table 5-6 in the link), XS: base64Binary is mapped to a compatible SQL binary data type: RAW (default), or BLOB (if we use the annotation).

    In my example, the generated object type is:

    SQL> desc "image888_T"
     Nom                                       NULL ?   Type
     ----------------------------------------- -------- ----------------------------
     SYS_XDBPD$                                         XDB.XDB$RAW_LIST_T
     name                                               VARCHAR2(4000 CHAR)
     content                                            BLOB
    

    I don't understand how this can be (is) done automatically?

    When you load an XML instance in the table, the contents of the string encoded in base64 is automatically converted into format binary original and stored as a BLOB (that's works the mapping).
    Then, when you run:

    select extractvalue(t.object_value, '/image/content') from images_table t;
    

    It follows a BLOB column containing the original image, not the string base64, so you won't need a converter.

  • How to load xml using sql loader data?

    Is there any load script of XML data in a table through sql loader?

    Help me out here...

    Thank you

    You can post your code here? while I can help you... your code format should be like this...

    Example code:

    DOWNLOAD THE DATA

    INFILE *.

    IN THE TABLE po_tab

    ADD

    XMLTYPE (xmldata)

    FIELDS

    (xmldata TANK (2000))

    BEGINDATA

    "" http://www.Oracle.com/po/"xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"

    "" xsi: schemaLocation = "http://www.oracle.com/PO http://www.oracle.com/scha0/po1.xsd"

    orderDate = "1999-10-20" >

    Alice Smith

    123 maple Street

    Mill Valley

    CA

    90952

    Robert Smith

    8 oak Avenue

    Old town

    PA

    95819

    Hurry, my lawn is going wild!

    Lawn mower

    1

    148.95

    Confirm this is electric

    Baby monitor

    1

    39.98

    1999-05-21

  • How to load xml data to dynamic text under a button (AS3)

    Hi all

    I created a button and put some dynamic text in it. But I can not dynamically load text from an xml file.
    See the code below:

    var xmlLoader9:URLLoader = new URLLoader();
    xmlLoader9.addEventListener (Event.COMPLETE, showXML99);
    xmlLoader9.load (new URLRequest ("mempops.xml"));

    function loadXML99(e:Event):void
    {
    XML.ignoreWhitespace = true;
    var tree: XML = new XML (e.target.data);
    var i: Number;
    for (i = 0; i < fir.mylist.length (); i ++)
    {
    mybuton1. Box1.dyntext1.AppendText (FIR.memberz [i] .mname. Text());
    myButton1 = button
    Box1 = movie clip
    dyntext1 = dynamic text box
    }
    };

    and the error message:
    1119: access of property may be undefined box1 through a reference with static type flash.display:SimpleButton.

    Thanks for the help

    SimpleButtons have very limited property, so you can't really add content in them that code can talk.  Your best bet will be to create the button as a movieclip.  MovieClip objects can have code addressable bjects placed in them and can also have properties assigned dynamically.

  • How to load 2 xml galleries loop only function.

    How to load 2 xml galleries loop only function.

    my function is-

    var myGalleryXML = new XML();

    myGalleryXML.ignoreWhite = true;

    myGalleryXML.load ("gallery.xml");

    function callThumbs()

    {

    _root.createEmptyMovieClip ("Wall", _root.getNextHighestDepth ());

    Wall._x = _root.gallery_x;

    Wall._y = _root.gallery_y;

    wall.addEventListener (MouseEvent.CLICK);

    var clipLoader = new MovieClipLoader();

    preloader var = new Object();

    clipLoader.addListener (preloader);

    for (i = 0; i < 6; i ++)

    {

    thumbURL = myImages [i].attributes.thumb_url;

    myThumb_mc = wall.createEmptyMovieClip (i, wall.getNextHighestDepth ());

    myThumb_mc._x = _root.thumb_height * i;

    myThumb_mc._x = _root.thumb_position = - 3100 + (i - j) * 765;

    clipLoader.loadClip ("store /" + thumbURL, myThumb_mc);  I want to load this XML Gallery "gallery1.xml".

    preloader.onLoadStart = function (target)

    {

    target.createTextField ("my_txt", target.getNextHighestDepth (), 0,0,10, 10);

    Target.my_txt. Selectable = false;

    };

    preloader.onLoadProgress = function (target, loadedBytes, totalBytes)

    {

    Target.my_txt. Text = Math.floor ((loadedBytes / totalBytes) * 100);

    };

    preloader.onLoadComplete = function (target)

    {

    The new Tween (target, "_alpha", Strong.easeOut, 0, 100,.5, true);

    Target.my_txt.removeTextField ();

    target.onRelease = function()

    {

    callFullImage (this._name);

    };

    target.onRollOver = function()

    {

    This ._alpha = 100;

    };

    target.onRollOut = function()

    {

    This ._alpha = 100;

    };

    };

    }

    for (i = 0; i < 6; i ++)

    {

    thumbURL = myImages [i].attributes.thumb_url;

    myThumb_mc = wall.createEmptyMovieClip (i, wall.getNextHighestDepth ());

    myThumb_mc._x = _root.thumb_height * i;

    myThumb_mc._x = _root.thumb_position =-7210 + (i - j) * 765;

    myThumb_mc._y = _root.thumb_position = 180;

    clipLoader.loadClip ("banner /"+ thumbURL, myThumb_mc ");  / / I want to load this XML Gallery 'gallery2.xml'

    preloader.onLoadStart = function (target)

    {

    target.createTextField ("my_txt", target.getNextHighestDepth (), 0,0,10, 10);

    Target.my_txt. Selectable = false;

    };

    preloader.onLoadProgress = function (target, loadedBytes, totalBytes)

    {

    Target.my_txt. Text = Math.floor ((loadedBytes / totalBytes) * 100);

    };

    preloader.onLoadComplete = function (target)

    {

    The new Tween (target, "_alpha", Strong.easeOut, 0, 100,.5, true);

    Target.my_txt.removeTextField ();

    target.onRelease = function()

    {

    callFullImage (this._name);

    };

    target.onRollOver = function()

    {

    This ._alpha = 100;

    };

    target.onRollOut = function()

    {

    This ._alpha = 100;

    };

    };

    }

    }

    combine the two into a single xml files if you want to create a gallery.

    If you want two different galleries that display at different times, tear down the wall of movieclip after that finished with gallery1 and run myGalleryXML.load("gallery2.xml");

  • How to 'Allow smoothing' for the loaded XML .jpg?

    I have a thumb wheel image that loads a bunch of jpg. They are be enlarged rollover in 1,05.

    I've seen pixelated at scale 1 x 1 as well as expanded.

    I'm happy prettey how Flash renders the images with "Allow smoothing" on.

    How would I do it for the loaded xml jpg? Would it be as a script in the main folder or in the xml file?

    Here's how to load images in AS3:

    function completeHandler_AppPopUps(e:Event):void{
              //trace("thumbnail complete "+e.target.loader.parent.parent.name)//tells us when the loading is complete
    
              //size image into scroller (need only if I will have images at different sizes)
              resizeMe(e.target.loader.parent, 60, 90, true, true, false);
    
              TweenMax.to(e.target.loader.parent.parent, .5, {alpha:.7});//makes all thumb images at alpha=.7 after they are fully loaded
              //Tweener.addTween(e.target.loader.parent.parent, { alpha:1, time: .5 } );//caurina version
    
              TweenMax.to(e.target.loader.parent.parent, .5, {colorMatrixFilter:{contrast:1.1, brightness: .7, saturation: .5}});//makes all thumb images at brightness:0.5 after they are fully loaded
    
    
    }
    
    

    I don't want to complicate things more than necessary, but just in case it's needed here is the complete code for the edification of the wheel section:

    /////Parse XML
    //build scroller from xml
    function buildScroller(imageList:XMLList):void{
              trace("build Scroller");
    
              for (var item:uint = 0; item<imageList.length();item++) {
                        var thisOne:MovieClip = new MovieClip();
    
                        //outline
                         var blackBox:Sprite = new Sprite();
                        blackBox.graphics.beginFill(0xFFFFFF);
                        blackBox.graphics.drawRect(-1, -1, 62, 92);//-1,-1 places rectangle 1px left and up.62, 92 draws rectangle 1px wider on all sides of placed image dimenstions of 60x90
                        blackBox.alpha = thumbFadeOut;//setting Border Tweens
                        thisOne.addChild(blackBox);
                        thisOne.blackBox = blackBox;//setting Border Tweens
    
                          thisOne.x = thisOne.myx = (60 + padding) *item;//replaces the line above for scale tweenw roll over calculation. "myx" is a made up term which defines the position. 61 is the width of the thumb
                        thisOne.itemNum = item;
                        thisOne.title = imageList[item].attribute("title");
                        thisOne.link = imageList[item].attribute("url");
                        thisOne.src = imageList[item].attribute("src");
                        thisOne.alpha = 0;//makes all thumb images at alpha=0 before they are fully loaded
    
                        //Loading and Adding the Images
                        //image container
                        var thisThumb:MovieClip = new MovieClip();
                        //add image
                        var ldr:Loader = new Loader();
                        //var url:String = imageList[item].attribute("src");
                        var urlReq:URLRequest = new URLRequest(thisOne.src);
                        trace("loading thumbnail "+item+" into Scroller: " + thisOne.src);//url
                        ldr.load(urlReq);
                        //assign event listeners for Loader
                        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler_AppPopUps);//tells us when the loading is complete
                        ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler_AppPopUps);//tells us if there are any typo errors when the loading is complete
                        thisThumb.addChild(ldr);
                        thisOne.addChild(thisThumb);
    
                        //create listeners for this thumb
                        thisOne.buttonMode = true;//makes boxes act as buttons
                        thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem_AppPopUps);//makes boxes act as buttons
                        thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem_AppPopUps);//traces the title when the mouse is over the bounding box in the Output Panel
                        thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem_AppPopUps);//traces the title when the mouse is out the bounding box in the Output Panel
    
    
    
                        //add item
                        scroller.addChild(thisOne);
              }
              scroller.addEventListener(Event.ENTER_FRAME, moveScrollerThumbs);//adding movement on mouse position
              trace("termination of build scroller");
    
    }
    
    
    

    in your listener to full charge, enable the property smoothing to the content of your charger (expressed as a bitmap).

    function completeHandler_AppPopUps(e:Event):void{

    Bitmap(e.currentTarget.loader.content).smoothing=true;
              //trace("thumbnail complete "+e.target.loader.parent.parent.name)//tells us when the loading is complete

    //size image into scroller (need only if I will have images at different sizes)
              resizeMe(e.target.loader.parent, 60, 90, true, true, false);

    TweenMax.to(e.target.loader.parent.parent, .5, {alpha:.7});//makes all thumb images at alpha=.7 after they are fully loaded
              //Tweener.addTween(e.target.loader.parent.parent, { alpha:1, time: .5 } );//caurina version

    TweenMax.to(e.target.loader.parent.parent, .5, {colorMatrixFilter:{contrast:1.1, brightness: .7, saturation: .5}});//makes all thumb images at brightness:0.5 after they are fully loaded

    }

  • Loading XML Labview schema files in python(or matlab)

    Hello

    Does anyone have experience loading labview XSD in python or matlab or similar?  Or is there a better format to the output into that could have an easier interface.  I guess I want to be able to use the labview interface I have as much as possible, but to any other treatment elsewhere.  Vaguely hoped that there could be a simple conversion or schema imput I can use - without having to maintain several different sets of input\output code on different systems - ideas?

    JP

    Thank you

    So I guess if you want something doing...

    I have implemented something that helps with analysis of the XML in python.  I must say that I have not tested much, but it seems to do the simple things I need ok at the moment. I have the joint where it might be useful for someone else.

    Basically, the two files that you need are LabviewXMLDataLoader.py and ContextDict.py - the first is the module that parses the XML, the second is a module that I also stole and maimed so that its easier to have nested 'dicitionaries"which I think are the closest in python to clusters in LV

    PulsedMeasurement_v2.py is an example of how I load a lv object variables into a python object.

    Anyway, as I said it is not perfect, but it's a starting point.

  • Loading XML data in ListView of C++ after extraction of http data

    I'm sorry did searh but could not find any refrence related to my problem
    I am trying to load the xml data returned from a web service HTTP Post QNetworkRequest and QNetworkReply in c ++.

    My XML that gets donwloaded is as

    
     http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
      
        tu7652
        F
        Marry
        Wijaya
      
      
        23
        F
        Marry
        Wijaya
      
    
    

    In My QML, it comes to the ListView can say SearchResult.qml

    ListView {
              objectName: "resultlist"
              dataModel: feedsdatamodel
              listItemComponents: [
                ListItemComponent {
                            type: "item"
                            PeopleListItem {
                                name: ListItemData.givenName + ", " + ListItemData.sn
                                role: ListItemData.ExtFunction
                                leftPaddingText: 40
                            }
                        }
               ]
            }
     attachedObjects: [
           // The data model that contains the content of a XML file
            GroupDataModel {
                id: feedsDataModel
                sortingKeys: [
                    "givenName"
                ]
                grouping: ItemGrouping.None
            }
        ]
    

    PeopleListItem.qml

    import bb.cascades 1.0
    
    Container {
        property alias name: titleLabel.text
        property alias role: functionLabel.text
        property alias leftPaddingText: textcontainer.leftPadding
    
        layout: StackLayout {
            orientation: LayoutOrientation.TopToBottom
        }
        preferredWidth: 768
        preferredHeight: 135
        Container {
    
            id: textcontainer
            topPadding: 10
    
            layout: StackLayout {
                orientation: LayoutOrientation.TopToBottom
            }
            Label {
    
                id: titleLabel
                textStyle.base: SystemDefaults.TextStyles.TitleText
                textStyle.color: Color.Black
            }
            Label {
                id: functionLabel
                textStyle.base: SystemDefaults.TextStyles.BodyText
                textStyle.color: Color.Gray
            }
        }
        Divider {
            verticalAlignment: VerticalAlignment.Bottom
        }
    }
    

    This is the function I'm using to display the QML it is called from main.qml and works correctly.

    void PeopleFinder::onSearchClicked() {
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t" << "begin";
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\tfname:"
                << m_fname << "\tlname:" << m_lname;
    
        // Create a network access manager and connect a custom slot to its
        // finished signal
        mNetworkAccessManager = new QNetworkAccessManager(this);
    
        // create a data model with sorting keys for lastname and firstname
        Q_ASSERT(
                connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*))));
    
        //Load the bew QML file of Search from here
        QmlDocument *qml = QmlDocument::create("asset:///SearchResults.qml").parent(
                this);
        qml->setContextProperty("peoplefinder", this);
    
        Page *mypage = qml->createRootObject();
        qml->setParent(mypage);
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t s444444";
    
        // Retrieve the activity indicator from QML so that we can start
        // and stop it from C++
    //  mActivityIndicator = mypage->findChild("myIndicator");
    
        // Retrieve the list so we can set the data model on it once
        // we retrieve it
        mListView = mypage->findChild("resultlist");
    
        mNavigator->push(mypage);
    }
    

    Once the page loads in the QML it call the launch request providing c ++ file and once the
    query is completed under function is called with the data. I checked that data are downloaded properly

    void PeopleFinder::requestFinished(QNetworkReply* reply) {
        qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                << "response received";
        // Check the network reply for errors
        if (reply->error() == QNetworkReply::NoError) {
    
            // Open the file and print an error if the file cannot be opened
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "No error";
    
            // Write to the file using the reply data and close the file
            QByteArray xml = reply->readAll();
            qDebug() << "Data: \n" << xml;
    
            // load the xml data
            XmlDataAccess xda;
            QVariant list = xda.load(xml, "ArrayOfPeople");
    
            qDebug() << "List:::\n" << list;
    
            GroupDataModel *datamodel = (GroupDataModel*)mListView->dataModel();
            // add the data to the model
            datamodel->clear();
            datamodel->insertList(list.value());
            datamodel->setSortingKeys(QStringList() << "givenName" << "sn");
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "Datamodel set size:: " << datamodel->size();
    
            // Set the new data model on the list and stop the activity indicator
    
        } else {
            qDebug() << "\n Problem with the network";
            qDebug() << "\n" << reply->errorString();
        }
    }
    

    But now, the real problem begins as in how to convert QByteArray data type of QVariantList which can be loaded into the datamodel
    I don't want to write the data to the XML file and then pass that as a list his will is very slow, once I move test environment to the production environment.

    Please help me solve this problem

    I got it to work using xml parsing with QXmlStreamReader

  • Store functions/procedures in BI Publisher - failed to load XML

    Hello world

    I am trying to call a function to return a set of rows with BI Publisher. When I want to look at the data on the 'Data' tab, I get "Failed to load XML".

    Here are the steps I took:

    Step 1: created a type

    create type numset_t as table of number;
    

    Step 2: Creating the function

    create or replace function f1(x number) return numset_t pipelined is
    begin
    for i in 1..x loop
    pipe row(i);
    end loop;
    return;
    end;
    

    Step 3: Under "Data sets", I created a SQL query with the following options/code

    Code:

    select * from table(f1(3))
    

    Options: Data Source - my selected schema

    SQL type: Non-standard SQL

    Name of tag line: test

    How can I check my data using the button "data"?

    Thank you

    Here's the steps/documentation on how to call a function from BI Publisher:

    #1) make sure you use SYS_REFCURSOR.

    (#2) create your function as below:

    CREATE OR REPLACE FUNCTION FUNC1 (P1 VARCHAR2) RETURN SYS_REFCURSOR IS
    
       XDO_CURSOR SYS_REFCURSOR;
    BEGIN
     IF P1 = 'USA' THEN
     OPEN XDO_CURSOR FOR
     'SELECT  TO_CHAR(SYSDATE,''MM-DD-YYYY'') AS CURRENT_DATE, X.STATE FROM SchemaName.XX1 X WHERE X.ID IN (100,200,400)';
     RETURN XDO_CURSOR;
     ELSE
     OPEN XDO_CURSOR FOR
     'SELECT  TO_CHAR(SYSDATE,''MM-DD-YYYY'') AS CURRENT_DATE, X.STATE FROM SchemaName.XX1 X WHERE X.ID IN (300,500,600)';
     RETURN XDO_CURSOR;
     END IF ;
    END FUNC1;
    

    (#3) connect as system and grant execute the user to BI

    GRANT EXECUTE ON SchemaName.FUNC1 TO BI_USER;
    

    (#4) under the data model, create a data set with the following (as for example):

    BI requires the variable xdo_cursor as the output, so do not change the name of the variable.

    DECLARE
       type refcursor is REF CURSOR;
       xdo_cursor refcursor;
    BEGIN
       :xdo_cursor := SchemaName.func1(:P1);
    END;
    

    Type of SQL procedure call =

    Thank you. I hope that everything that troubleshoot you.

  • "Error loading XML Document from saw.dll./answers/saw.selections.xml?fmapId=RRxCfQ. "The answer was: ' when you access analytic dashboards

    During these months, we were faced with an error "" error when loading XML Document saw.dll./answers/saw.selections.xml?fmapId=RRxCfQ. "The answer was: ' when you access analytical dashboards OBIEE.

    It is a global problem, and users cannot access any dashboard in OBIEE analytics.

    We used weblogicPlugin 1.1 to configure the reverse proxy for our 64-bit using IIS 7.5 weblogic server. WebLogic Server Version: 10.3.6.0. We see the error "resolveRequest: application ' / analytics/saw.dll/answers/saw.selections.xml' has not been sent." Found OR '?', or ';' in URI "in the IIS Proxy log.

    This question is regardless of the browser and get to each broser we tested. Users should click on the error message loading XML Web page pop for about 20 times to see the dashboard.


    No idea how to solve this problem?

    By Oracle Support suggestion, I installed Oracle HTTP server (OHS) and the problem is solved. For now, the problem is solved but SITEMINDER SSO and Siebel IFRAMES should be tested with OSH being the web server now.

  • Problem loading xml using sql loader file

    I am trying to load data into the table test_xml (xmldata XMLType)

    I have an xml file and I want any file to load in a single column

    When I use the following control file and run from the command-line as follows
    sqlldr $1@$TWO_TASK direct control=$XXTOP/bin/LOAD_XML.ctl = true; :

    DOWNLOAD THE DATA
    INFILE *.
    TRUNCATE INTO TABLE test_xml
    XmlType (XMLDATA)
    FIELDS
    (
    tank fill ext_fname (100),
    XMLDATA LOBFILE (ext_fname) COMPLETED BY expressions of folklore
    )
    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    the file is loaded in the table perfectly.

    Unfortunately I can't hard-code the name of file as file name will be changed dynamically.

    so I removed the block

    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    control file and tried to run by giving the following command line path

    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml = true;

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Please find the log of the program with the error

    ------------------------------------------------------------------
    Loading XML through SQL * Loader begins
    ------------------------------------------------------------------
    SQL * Loader-502: cannot open the data file ' <? XML version = "1.0"? > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< root >' XMLDATA field table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > forms < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > PLL < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML

    Please help me how can I load full xml in a single column using command line without Hardcoding in the control file

    Published by: 907010 on January 10, 2012 02:24

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Nothing strange, that the data parameter specifies the file containing the data to load.
    If you use the name of the XML here, the control file will try to interpret each line of XML as being separate ways.

    The traditional approach this is to have the name of the file stored in another file, say filelist.txt and use, for example:

    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;
    
  • Loading XML data and images to init

    I have this little flash application that I'm working, which loads images and XML data. It comes from the Timer class that loads the video clips from the scene and delete them (I thought that this could be the best way to orchestrate it it). Now, I'm having a problem with redundancy expenses. (It loads every time data, which causes delays, and so it was established (loaded) at the beginning and reused through the application)

    Instead of loading the data each time, I would like to

    (1) load the images and XML to load (with the initial start of the SWF)

    (2) assign this data to variables and then add them and remove them as I please throughout the application.

    I posted the code here http://CodeViewer.org/view/code:9BA

    just to save space

    With respect to the processing of XML, you have several options. I prefer to write classes that will treat this kind of functionality, but since you do things on the timeline, one way would be:

    1. on the chronology of racquets_mc and listing_mc create a method that will affect the XML value:

    
    function set loadedXML(xml:XML):void{
         xmlData = xml;
    } 
    

    2. on the main timeline, you will need to load your XML file only once how you load it into each individual symbol. Once it's loaded, you can pass it on to all of the objects that need to consume. For example, your XML instance on the main timeline setting is:

    var configXML:XML;
    

    After load you it, you can pass to your symbols and, thus, reuse in the expanses of the functions which instantiate the:

    racquets_mc = new listing();racquets_mc.loadedXML = configXML;
    
    listing_mc = new listing();listing_mc.loadedXML = configXML;
    

    Naturally the routine of initiation within your symbols, in part, depend on presence of XML if you refactor your code accordingly.

    I hope this helps.

  • How to load external images and animate it after it is loaded?

    I know how to load external images using xml, but the problem is that if I have a lot of images to load then animate after it is loaded. I know theres a work around to this problem but still I have not understand.

    Thanks for help.

    You will need to use the MovieClipLoader class.  It supports have a headset which allows you to determine when the image has loaded so that you can act on it.

    If you are looking for the MovieClipLoader.addEventListener methoid (), there is an example that will be useful to see how to configure things (it's not your scenario, but a good reference).

  • Loading XML with .AS file

    I am new to writing .as files. I have no problem loading in XML format and analysis it when I do it on the first image of one. IN FLORIDA.

    Im trying to do the same using statements classes, packages.

    Ive tried unsuccessfully

    Can someone tell me how close or how far I get this and give help.

    Thank you.

    package {}
    import flash.display.Sprite;
    import flash.events. *;
    flash.net import. *;
    import flash.utils. *;
    import flash.display.Loader;

    public class productBrochureClass extends Sprite {}
    private var: padding: uint = 10;
    private var listHolder:Sprite;
    private var myXML:XML;
    public var xmlLoader:URLLoader;
    var xmlLoader:URLLoader = new URLLoader();

    public void productBrochureClass() {}
    var xmlloader:URLLoader = new URLLoader();
    listHolder = new Sprite();

    xmlLoader.addEventListener (Event.COMPLETE, handleComplete);
    xmlLoader.load (new URLRequest("xml/productBrochuresDatasheets.xml"));

    addChild (listHolder);
    trace ("listholder")
    trace ("xml loaded")
    }

    }
    public void handleComplete(event:Event): void {}
    myXML = new XML (event.target.data);
    createListFromXML (myXML);
    trace ('handshake Complete')
    }



    private void createListFromXML(myXML:XML):void {}
    for (var i: uint = 0; i < xmlLoader.item.length (); i ++) {}
    var listItem:ListItem = new ListItem();
    listItem.setText ("list item" + i + ":" + xml...) Item[i].@name);
    listItem.setID (i);
    listItem.y = i * listItem.height + i * padding material.
    listHolder.addChild (listItem);
    }

    }
    }

    The error means that you lost a brace and close the class leaving something outside the class, also remember that AS3 is case sensitive, don't forget not the scope of vars, if you define a var inside a function, it will be visible inside that work only. I saw not a type of item in list in AS3, it's probably a var inherited type.

    Here's a modified version of your class, you just need to change the list item for something else.

    package{
    
         import flash.display.Sprite;
         import flash.events.*;
         import flash.net.*;
         import flash.utils.*;
         import flash.display.Loader;
    
         public class productBrochureClass extends Sprite{
              private var padding:uint = 10;
              private var listHolder:Sprite;
              private var myXML:XML;
              private var xmlloader:URLLoader
              //public var xmlLoader:URLLoader;
              //var xmlLoader:URLLoader = new URLLoader();
    
              public function productBrochureClass(){
                   xmlloader= new URLLoader();
                   listHolder = new Sprite();
    
                   xmlloader.addEventListener(Event.COMPLETE, handleComplete);
                   xmlloader.load(new URLRequest("xml/productBrochuresDatasheets.xml"));
    
                   addChild(listHolder);
                   trace("listholder")
                   trace("loaded xml")
              }
    
              public function handleComplete(event:Event): void {
                   myXML = new XML(event.target.data);
                   createListFromXML(myXML);
                   trace("handle Complete")
              }
    
              private function createListFromXML(myXML:XML):void{
                   for(var i:uint=0;i		   
  • 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 :)

Maybe you are looking for