Unload dato to XML by commandline

Hi, sorry to bother you with my question, maybe someone had already posted it but I can't find any answer to my problem.
I need to export a Table into an XML file but not using the Oracle interface but a script or a dos command
I hope someone could help me!!!
Damiano

Simple XML Non-interactive Export

Similar Messages

  • Append data and save in XML

    hi all ! I have some data that is stored in a XML fine and since each SML is client based it can be edited according to everyone tastes. So my question is, can someone point me out how to append data and then saving it into the XML (hopefully without having to rewrite the whole XML document.
    This is how Im retreiving my Data from the XML and my try at appending data, but I dont know if Im being succesfull because its not being saved:
    String path = "C:/MedPro";
                    File file = new File(path + "/XML/data.xml");
                    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                    DocumentBuilder db = dbf.newDocumentBuilder();
                    Document doc = db.parse(file);
                    doc.getDocumentElement().normalize();
                    /* PARA ALIMENTAR LA AGENDA CON LOS DATOS DEL XML*/
                    NodeList nodeLst = doc.getElementsByTagName("Agenda"); //Lista de Items para manejar la agenda
                    for (int s = 0; s < nodeLst.getLength(); s++) {
                        Node fstNode = nodeLst.item(s);
                        if (fstNode.getNodeType() == Node.ELEMENT_NODE) {
                            Element fstElmnt = (Element) fstNode;
                            NodeList fstNmElmntLst = fstElmnt.getElementsByTagName("sub");
                            Element fstNmElmnt = (Element) fstNmElmntLst.item(0);
                            Node nod=fstNmElmntLst.item(0).appendChild(doc.createTextNode("Hola"));
                            /*NodeList fstNm = fstNmElmnt.getChildNodes();
                            System.out.println("Agenda : " + ((Node) fstNm.item(0)).getNodeValue());
                            lista_agenda.add(s, ((Node) fstNm.item(0)).getNodeValue());*/
                    }Any help is appreciated.
    Thanks a lot!
    Edited by: juanmanuelsanchez on Oct 10, 2009 4:27 PM

    juanmanuelsanchez wrote:
    ok but is there a way to do it without having to rewrite the whole XML?short answer, no. xml, like many structured file formats, is not really amenable to "partial updating". the only way to "append" data to a file without rewriting it is to write to the end of the file. how will you maintain a valid xml format by only adding to the end of the file? i can't imagine the xml is that large seeing as you are using a DOM parser to read it, so i don't understand why you don't want to just rewrite the file.

  • Loading XML data in Utilities

    I need to load some XML data into a staging table.
    I am using this navigation path...
    Home>Utilities>Data Load/Unload>Load>Load XML Data
    The staging table is setup with the columns in the XML file.
    I am receiving this error when I attempt to load the XML file:
    ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00222: error received from SAX callback function
    I'm not sure that I have the correct columns in the table to match the XML file.
    Is there any documentation describing what columns should be in the table I am loading the XML data into?
    Many Thanks,
    Reid

    There are detail steps here: Sending XML file data into BW
    Otherwise please specify where you faced problems.

  • Content conversion in Sender JMS Adapter

    Hi,
    Scenario is file to IDoc
    My source file is   ' ; ' separated file coming from MQ via JMS adapter. now  I need to convert this to XI.
    Source DT looks like
    Root
    HEADER  (Occurance 1)
         Field 1
         ISOCURCD
         TRANKODE
         IDENTIFIER
         DATO
         TIME
    DETAIL(Occurance 1 to unbounded)
         ISOCURCD
         TRANKODE
         EFFDATE
         COMMDATE
         DKKVAL1
         USDVAL1
    TRAILER(Occurance 1)
         ISOCURCD
         TRANKODE
          TRANCOUNT
    According to How to use content conversion in JMS guide from SDN i have configured the content conversion parameters in the module of JMS sender adapter.
    In the processing sequence  given the module name as localejbs/AF_Modules/MessageTransformBean and module Key as Plain2XML.
    And in module configuration
    Parameter Name                      Parameter Value
    Transform.Class                          com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType                     text/xml;charset=utf-8
    xml.keyFieldName                          TRANKODE
    xml.keyFieldType                          CaseSensitiveString
    xml.recordsetName                          Root
    xml.documentName                                   MT_ROOT
    xml.documentNamespace                          http://XXX.XXX.XX/xi/XXXXX
    xml.processFieldNames          fromConfiguration
    xml.conversionType                                   StructPlain2XML
    xml.recordsetStructure          HEADER,1,DETAIL,*,TRAILER,1
    xml.HEADER.fieldNames           Field1,ISOCURCD,TRANKODE,IDENTIFIER,DATO,TIME
    xml.HEADER.fieldSeparator                     ";"
    xml.HEADER.keyFieldValue                     H
    xml.fieldSeparator                                      ";"(if i don't use this then the file is not being picked and getting an error in the CC monitoring of RWB saying xml.field separator missing.)
    Similarily for Detail and Trailer records as well.
    But when I run the scenario, the file is being picked up but I am not getting any payload into the inbound message.
    Can you please help me where I have configured wrongly. And one more thing will this configuration help for ; separated file .
    Thanks & Regards,
    Kumar
    Edited by: Kumar on Dec 19, 2007 11:11 AM
    Edited by: Kumar on Dec 19, 2007 11:15 AM

    HI,
    Have you gone through the below pdf i think it will help to find ur mistake.
    How to use conversion modules in JMS - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Thnx
    Chiarg

  • HTS code - Duty rate issue because of  two  validity periods

    Hi Everyone
    After HTS data upload for 2012 through XML file  ,system had 2 validity periods 2012-01-01           9999-12-30    and 2012-01-01           2012-12-31 . Hence now there is a issue of duplicate record ,since both periods are valid .
    But the data provider customs info  has confirmed they have sent only one record with validity period 2012-01-01           2012-12-31 .in the XML file .
    How the record with validity period  2012-01-01           9999-12-30  is now there  in the system
    Is there a chance that the XML upload pgm in our system has generated this record ? How the upload pgm works ?
    Is there any way to  UNLOAD the uploaded XML files ?
    If i have to delete the records with this 9999 entry , any way to mass delete ?
    Thanks in advance ,
    Vani

    Hi Vani,
    I'm conscious that no-one has responded to your post here, but it seems very much the same issue as the other one that you posted on the same date - in effect, a duplicate post.  If you agree, perhaps you would close it.  If I've mis-understood, then please clarify - thanks.
    Regards,
    Dave

  • [Flash???] Aplicaciones locales y cd

    Buenos dias a todos,
    me dedico a hacer aplicaciones para web. Suelo trabajar en
    SQL Server + ASP
    + ActionScript. Hasta aquí bien. Mi duda es la
    siguiente:
    - Si quiero hacer una aplicacion que funcione en una red
    local (sin conexion
    a Internet) que tecnologias deberia utilizar? Se me ocurre
    hacer la
    aplicacion tal y como las hago e instalar un servidor web,
    pero esto
    requiere ciertos conocimientos informáticos por parte
    del cliente para
    mantener el servidor y desearía que mi aplicacion no
    dependiera de un
    servidor, que fuera algo cerrado.
    - Si además, esa aplicacion quiero que funcione en un CD
    o DVD... Tengo el
    mismo problema ya que no funcionaría tal y como las
    hago.
    En fin... sugerencias para estas dos posibilidades me
    vendrían muy bien.
    Muchas gracias
    Vida

    Muchas gracias por vuestras respuestas, han sido de gran
    ayuda
    "Juan Muro `8¬}" <[email protected]>
    escribió en el mensaje
    news:[email protected]...
    > Es una buena opción el xml, como dice Carlos
    Macias, exportando los datos
    > de tu base de datos a xml y recuperándolos desde
    Flash, pero también
    > puedes usar el Multidmedia Zinc, al que no le hace falta
    lenguajes
    > intermedios para conectar Flash con las bases de datos y
    da igual que
    > estén en local o en remoto, aquí tienes un
    tuto al respecto:
    >
    http://www.cristalab.com/tutoriales/223/conectar-flash-con-access-usando-mdm-zinc
    > Sin embargo, siempre debes tener en cuenta que si haces
    correr tu
    > aplicación desde un CD, sea cual sea la
    tecnología que uses para saltarse
    > el enojoso asunto del origen de la base de datos (ODBC),
    solamente podrás
    > hacer consultas, pero nunca guardar nuevos datos ni
    modificar los
    > existentes, ya que sobre un CD no se puede grabar
    directamente.
    > Salu2
    > `8¬}
    > Juan Muro
    >
    >
    > "CMacias" <[email protected]> escribió en el
    mensaje
    > news:[email protected]...
    >> Flash+XML
    >>
    >> "Vida" <[email protected]> escribió en el mensaje
    >> news:[email protected]...
    >> Buenos dias a todos,
    >>
    >> me dedico a hacer aplicaciones para web. Suelo
    trabajar en SQL Server +
    >> ASP
    >> + ActionScript. Hasta aquí bien. Mi duda es la
    siguiente:
    >> - Si quiero hacer una aplicacion que funcione en una
    red local (sin
    >> conexion
    >> a Internet) que tecnologias deberia utilizar? Se me
    ocurre hacer la
    >> aplicacion tal y como las hago e instalar un
    servidor web, pero esto
    >> requiere ciertos conocimientos informáticos por
    parte del cliente para
    >> mantener el servidor y desearía que mi
    aplicacion no dependiera de un
    >> servidor, que fuera algo cerrado.
    >> - Si además, esa aplicacion quiero que funcione
    en un CD o DVD... Tengo
    >> el
    >> mismo problema ya que no funcionaría tal y como
    las hago.
    >>
    >> En fin... sugerencias para estas dos posibilidades
    me vendrían muy bien.
    >>
    >> Muchas gracias
    >>
    >> Vida
    >>
    >>
    >>
    >
    >

  • Schema Parser - Can not build Schema

    I keep getting the following exception error:
    "Can not build schema '' located at 'http://localhost/cv_enterprise.xsd''"
    This is the Code which throws the error :
    Reader r = cvcontext.Request.getReader();
    InputSource in_src = new InputSource(r);
    try {
    schemadoc = (XMLSchema)builder.build("c:/broadwing/xml/cv_enterprise.xsd");
    }catch(Exception ept){writeError("error in builiding " + ept.getMessage());}
    writeError("three");*/
    DOMParser dp = new DOMParser();
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(r);
    But the following lines of code works perfect:
    try{
    File f =new File(filename);
    FileReader r = new FileReader(f);
    DOMParser dp = new DOMParser();
    URL url = createURL (filename);
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(url);
    System.out.println("it is parsed");
    }catch(Exception e){System.out.println("there is error"+e.getMessage());}
    The only difference between two is the first one works under a servlet environment and the second is a standalone application. Both use the same xml and xsd documents. The servlet receives the xml via http post and the application takes the xml as commandline argument.
    The xml document has the xsd reference as http url.
    null

    I keep getting the following exception error:
    "Can not build schema '' located at 'http://localhost/cv_enterprise.xsd''"
    This is the Code which throws the error :
    Reader r = cvcontext.Request.getReader();
    InputSource in_src = new InputSource(r);
    try {
    schemadoc = (XMLSchema)builder.build("c:/broadwing/xml/cv_enterprise.xsd");
    }catch(Exception ept){writeError("error in builiding " + ept.getMessage());}
    writeError("three");*/
    DOMParser dp = new DOMParser();
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(r);
    But the following lines of code works perfect:
    try{
    File f =new File(filename);
    FileReader r = new FileReader(f);
    DOMParser dp = new DOMParser();
    URL url = createURL (filename);
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(url);
    System.out.println("it is parsed");
    }catch(Exception e){System.out.println("there is error"+e.getMessage());}
    The only difference between two is the first one works under a servlet environment and the second is a standalone application. Both use the same xml and xsd documents. The servlet receives the xml via http post and the application takes the xml as commandline argument.
    The xml document has the xsd reference as http url.
    null

  • ¿Secciones o separar los capítulos?

    Hola a todos!
    A menudo trabajo con libros muy largos extraídos desde base de datos en xml en los que en cada capítulo renumeran las notas para ello uso los cambios de sección o parto las historias en un mismo documento indd, mi problema es que los autores hacen muchos añadidos y tengo recorrido en las páginas.
    Si trabajo con secciones estas no se mueven con el capítulo nuevo
    Si lo parto en varias historias cuando me añaden nuevas páginas el enlazado de ellas no lo hace correctamente
    ¿Qué soluciones tengo?¿Es mejor tabajar cada capítulo por separado y luego unirlo en un libro? ¿se puede hacer mediante script?
    Muchas Gracias de antemano

    Creo qu es en el panel de Propiedades, donde a partir de un objeto 3d seleccionado, importado o creado hay un icono que permite acceder a las propiedades de extrusion, una de ellas es el volumen a partir de revolucion alrededor de un eje, en lugar de 360 grados coloca un valor inferior.

  • Loading and unloading xml galleries

    I have a several galleries that I will be loading via several xml files.  Gallery1 will load on start and the other galleries will load through buttons using their instance names (i.e. "gallery3" button will load "gallery3.xml").  Currently I have a function + listener (called "home") to initiate gallery1 on start, a function + listener (called "goSection") to initiate the other galleries via button instance name, and a function that loads the gallery (called "fileLoaded") with the listener located in the "home" and "goSection" functions.  There is a lot more code in the fileLoaded function that controls the thumbnail and full size images functionality that I am excluding because its probably not necessary for my problem.  Im not sure the most efficient way to set this all up so I unload the existing gallery before I load a new gallery.  Ive tried to use removeChild and removeEventListener on urlLoader without much success.  Any suggestions?  ...
    //BUTTONS
    var sButtons:Array = [gallery1,gallery2,gallery3,gallery4];
    function sButtonsListeners():void {
         for (var i:uint = 0; i < sButtons.length; i++) {
         sButtons[i].addEventListener(MouseEvent.CLICK, goSection);
    sButtonsListeners();
    var urlLoader:URLLoader = new URLLoader();
    //INIT HOME
    function home():void {
         trace("gallery1 loaded");
         //load external xml
         var urlRequest:URLRequest = new URLRequest("gallery1.xml");
         urlLoader.load(urlRequest);
         urlLoader.addEventListener(Event.COMPLETE,fileLoaded);
    home();
    //GO SECTION
    function goSection(event:Event):void {
         trace(instanceName + " loaded");
         var instanceName:String = event.currentTarget.name;
         //load external xml
         var urlRequest:URLRequest = new URLRequest(instanceName + ".xml");
         urlLoader.load(urlRequest);
         urlLoader.addEventListener(Event.COMPLETE,fileLoaded);
    function fileLoaded(event:Event):void {
         var myXML:XML = new XML();
         var xmlList:XMLList;
         myXML.ignoreWhitespace = true;
         var arrayURL:Array = new Array();     //thumbnails
         var arrayName:Array = new Array();     //large photos
         var holderArray:Array = new Array();     //thumbnail holder
         var thumb:Thumbnail;     //represents Thumbnail.AS
         //represents the gallery container
         var sprite:Sprite = new Sprite();
         addChild(sprite);
         //thumbnail container
         var thumbsHolder:Sprite = new Sprite();
         sprite.addChild(thumbsHolder);
         //image container
         var imageHolder:Sprite = new Sprite();
         sprite.addChild(imageHolder);
         //load image
         var imageLoader:UILoader = new UILoader();
         imageLoader.buttonMode = true;
         imageHolder.addChild(imageLoader);
         myXML = XML(event.target.data);
         xmlList = myXML.children();
         for (var i:int=0; i<xmlList.length(); i++) {
         var picURL:String = xmlList[i].url;
         var picName:String = xmlList[i].big_url;
         arrayURL.push(picURL);
         arrayName.push(picName);
         holderArray[i] = new Thumbnail(arrayURL[i],i,arrayName[i]);
         holderArray[i].name = arrayName[i];
         holderArray[i].buttonMode = true;
         holderArray[i].y = 25;
         holderArray[i].x = i * 87 + 142;
         thumbsHolder.addChild(holderArray[i]);

    Anyone?  My biggest concern is unloading the existing gallery before I load a new one.  Currently they load on top of each other.

  • Flash xml data loading and unloading specs

    hi i am trying to get specification information that i cannot
    find anywhere else.
    i am working a large flash project
    and i would like to load xml data into the same swf
    object/movieclip repeatedly.
    as i do not want the previously loaded items to unload i need
    to know if doing this will unload the items from the swf or just
    keep them in the library so they can be reposted without reloading.
    i cannot find any supporting documenation either way that
    tells me that if i load new content into a clip (i am aware
    levels overwrite) if it will or will not unload this content.
    thanks in advance.
    mk

    this is awful for me -- i cant even get the clip to duplicate
    -- and i thought this would be the simplest solution to keeping
    everything cached for one page before and one page after current in
    the project.
    i have used a simpler clip to test the code and see if i am
    insane.
    duplicateMovieClip(_root.circle, "prv", 5);
    prv._x = 300;
    prv._y = 300;
    prv._visible = true;
    prv.startDrag();
    this ALWAYS works when i use the _root.circle file of a green
    simple circle
    BUT
    when i change it to my main movie clip (which is loaded AND
    On screen -- it just doesnt duplicate at all!) -- i've even
    triggered it to go play frame 2 JUST IN CASE
    I've even set visibility to true JUST IN CASE
    ie all i do is change _root.circle to _root.cur
    and .... nada.
    AND _root.cur IS DEFINITELY on the screen and all xml
    components have been loaded into it. (it is a slide with a dynamic
    picture and dynamic type and it 100% works)
    has anyone had this insanity happen before?
    is this an error where flash cannot attach movie or duplicate
    a clip that has dynamic contents???

  • Loading/unLoading XML data

    Hello,
    I have an accordion style btn that expands and contracts base on the user's cursor.
    When the btn expands it loads an external XML file. The problem I'm having is that after the
    btn contracts the loaded XML content is still in place. Is there a way to unload this XML content after it has loaded?
    Cheers-
    Graeme

    I've attached my code,
    What code would I need to use to Null that instance?
    CODE:
    stop();
    function loadXML(loadedX) {
        if (loadedX) {
            xmlNode = this.firstChild;
            image = [];
            total = xmlNode.childNodes.length;
        for (i=0; i<total; i++) {
            image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
            load_pic();
        } else {
            content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("images.xml");
    function load_pic(){
        k = Math.floor(Math.random()*total);
        picture_1.holder.loadMovie(image[k], 1);
    //Store Button Position
    var yPosition:Number = 210;
    var xPosition:Number = 110;
    //Declare New XML Object
    var myXML:XML = new XML();
    //Set Flash to ignore the XML file's white space
    myXML.ignoreWhite = true;
    //Declare new Array to store the links from the XML file
    var links:Array = new Array();
    //Declare new Array to store the names from the XML file
    var names:Array = new Array();
    //Set XML onLoad function
    myXML.onLoad = function(){
        //Set varible to store the XML childNodes
        //This allows you to get the number of buttons in the XML file.
        //You'll use this tell flash how many times to loop the for loop.
        var linkname:Array = this.firstChild.childNodes;
        //Set a for loop
        for(i=0;i<linkname.length;i++){
            //Push the button name into the names Array
            names.push(linkname[i].attributes.NAME);
            //Push the button link into the links Array
            links.push(linkname[i].attributes.LINK);
            //Attach the button Movie Clip from the libray give it an instance name and place it on the next highest level
            _root.attachMovie("button","btn"+i,_root.getNextHighestDepth());
            //Set the y position of the buttons
            _root["btn"+i]._x = xPosition;
            //Increace the varible yPosition 15 pixel each time the loop runs to place each button under each other
            xPosition = xPosition+0
            _root["btn"+i]._y = yPosition;
            //Increace the varible yPosition 15 pixel each time the loop runs to place each button under each other
            yPosition = yPosition+30;
            //Place the button name from names Array into the blackTxt text box
            _root["btn"+(i)].blackTxt.Txt.text = (names[i]);
            //Place the button name from names Array into the whiteTxt text box
            _root["btn"+(i)].whiteTxt.Txt.text = (names[i]);
            //Assign the btnOver function to the button onRollOver state.
            _root["btn"+(i)].onRollOver = btnOver;
            //Assign the btnOut function to the button onRollOut state.
            _root["btn"+(i)].onRollOut = btnOut;
            //Assign the btnRelease function to the button onRelease state.
            _root["btn"+(i)].onRelease = btnRelease;
    //Load the XML file
    myXML.load("links.xml");
    //Button Over function
    function btnOver(){
        //This referse to the current button the mouse is over
        //Go To And Stop frame 2 of the current button the mouse is over
        this.gotoAndStop(2);
    //Button Out function
    function btnOut(){
        //Go To And Stop frame 3 of the current button the mouse rolls out from
        this.gotoAndStop(3);
    //Button Release function
    function btnRelease(){
        //Set a varible named currentBtn equal to the instance name of the current button the mouse clicked on
        var currentBtn:String = this._name;
        //Set a varible named currentIndex equal to the varible currentBtn and the characters between 3rd letter and 5th of that string.
        //This will return a number between 0 and the total number of buttons
        var currentIndex:String = currentBtn.substring(3,5);
        //Get the URL from the links Array
        //Use the currentIndex varible as the index number
        getURL(links[currentIndex]);

  • Commandline: Opening a directory opens Microsoft "Open XML Converter"

    Hello everyone,
    I am trying to open a directory from the commandline, like this:
    user1@HOSTA:~ $ open '/Volumes/Macintosh HD/Applications/'
    I expected the directory to open in the Finder, but instead a program called Microsoft "Open XML Converter" starts up instead. 'Finder' never opens. It seems like the default "type" was munged when "Open XML Converter" was installed.
    I have searched around the internet and in these forums, but I cannot find any answers. I appreciate any help on how to fix this.
    -= Stefan

    try running this script from the script editor (I picked it up somewhere - can't remember where). it should rebuild the launch services database, which might fix the problem.
    display dialog "The Finder must quit and will relaunch after the Launch Services rebuild is complete. The rebuild may take several minutes, during which time you should refrain from using any other apps." buttons {"Cancel", "Rebuild LS Database"} default button 2 with icon caution
    ignoring application responses
    tell application "Finder"
    delay 2
    quit
    end tell
    end ignoring
    delay 5
    tell application "System Events" to set runningapplications to get name of every application process
    if runningapplications contains "Finder" then do shell script "killall Finder"
    do shell script "/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user"
    tell application "Finder"
    delay 2
    activate
    end tell
    tell me to activate
    display dialog "The Launch Services rebuild is now complete." buttons {"OK"} default button 1 with icon note

  • XML AS3 load/unload

    I've got a peice of code that I use to load images for a slideshow.  Loader brings it up, adds it to the stage, tweens it in nicely. Everything works fine if the images are all the same size.  The problem is, the previous image is always there.  So if I have images of different sizes, you can still see the previous images.  How do I unload the previous image?  I can't figure out how to (unload, visible= false, alpha=0, ect) after the new image is tweened in.
    This is one of those deals where I would have had it done already if I would use the timeline but if I figure out how to package it, I'll have it for next time.
    Here's the code:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    var myTween:Tween;
    var xmlRequest:URLRequest = new URLRequest("imageData.xml");
    var xmlLoader:URLLoader = new URLLoader(xmlRequest);
    var imgData:XML;
    var imageLoader:Loader;
    var rawImage:String;
    var rawH:String;
    var rawW:String;
    var imgNum:Number = 0;
    var checkSec:Timer = new Timer(100);
    var delay:Timer = new Timer(3000);
    var numberOfChildren:Number;
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoadedF);
    function xmlLoadedF(event:Event):void {
        checkSec.start();
        checkSec.addEventListener(TimerEvent.TIMER, checkerF);
        imgData = new XML(event.target.data);
    function packagedF():void{
        checkSec.removeEventListener(TimerEvent.TIMER, checkerF);
        rawImage = imgData.image[imgNum].imgURL;
        numberOfChildren = imgData.*.length();
        rawW = imgData.image[imgNum].imgW;
        rawH = imgData.image[imgNum].imgH;
        imageLoader = new Loader;
        imageLoader.load(new URLRequest(rawImage));
        master_mc.addChild(imageLoader);
        imageLoader.x = (master_mc.width - Number(rawW)) / 2;
        imageLoader.y = (master_mc.height - Number(rawH)) / 2;
        imageLoader.alpha = 0;
        myTween = new Tween(imageLoader,"alpha", Strong.easeOut, imageLoader.alpha, 1, 2, true);
        //fadeOut();
        myTween.addEventListener(TweenEvent.MOTION_FINISH, TimerIgnite);
    function TimerIgnite(e:Event):void{
        delay.start();
        delay.addEventListener(TimerEvent.TIMER, nextImgF);
        //fadeOut();
    function checkerF(event:TimerEvent):void{
        if(imgNum == 0){
            packagedF();
        }else if(imgNum < numberOfChildren){
    //        fadeOut();
            //imageLoader.unload();
            packagedF();
        }else{
    //        fadeOut();
            //imageLoader.unload();
            imgNum = 0;
            packagedF();
    function nextImgF(e:Event): void {
        delay.stop();
        checkSec.addEventListener(TimerEvent.TIMER, checkerF);
        //fadeOut();
        imgNum++;
    function fadeOut():void{
        delay.stop();
        imageLoader.alpha = 0;

    OK, the error was coming from me not putting the master_mc in.  clbeech posted that while I was typing in my response. (thank you)
    Once I put that in, the error went away and the code sort of works.  It will dump the image but not immediately.  There is a real delay on the doOldLoader leaving the stage. I have the removeChild as the first thing in the TimerIgnite function so where is there a delay coming from?
    Here's the code:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    var myTween:Tween;
    var xmlRequest:URLRequest = new URLRequest("imageData.xml");
    var xmlLoader:URLLoader = new URLLoader(xmlRequest);
    var imgData:XML;
    var imageLoader:Loader;
    var rawImage:String;
    var rawH:String;
    var rawW:String;
    var imgNum:Number = 0;
    var checkSec:Timer = new Timer(100);
    var delay:Timer = new Timer(1000);
    var numberOfChildren:Number;
    var doOldLoader: Loader;
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoadedF);
    function xmlLoadedF(event:Event):void {
        checkSec.start();
        checkSec.addEventListener(TimerEvent.TIMER, checkerF);
        imgData = new XML(event.target.data);
    function packagedF():void{ 
        checkSec.removeEventListener(TimerEvent.TIMER, checkerF);
        rawImage = imgData.image[imgNum].imgURL;
        numberOfChildren = imgData.*.length();
        rawW = imgData.image[imgNum].imgW;
        rawH = imgData.image[imgNum].imgH;
        if ( null != imageLoader )
        doOldLoader = imageLoader ;
            imageLoader = new Loader;
            imageLoader.load(new URLRequest(rawImage));
            master_mc.addChild(imageLoader);
            imageLoader.x = (master_mc.width - Number(rawW)) / 2;
            imageLoader.y = (master_mc.height - Number(rawH)) / 2;
            imageLoader.alpha = 0;
            myTween = new Tween(imageLoader,"alpha", Strong.easeOut, imageLoader.alpha, 1, 2, true);
            myTween.addEventListener(TweenEvent.MOTION_FINISH, TimerIgnite);
    function TimerIgnite(e:Event):void{
        if (null != doOldLoader)
            master_mc.removeChild(doOldLoader);
        delay.start();
        delay.addEventListener(TimerEvent.TIMER, nextImgF);
    function checkerF(event:TimerEvent):void{
        if(imgNum == 0){
            packagedF();
        }else if(imgNum < numberOfChildren){
            packagedF();
        }else{
            imgNum = 0;
            packagedF();
    function nextImgF(e:Event): void {
        delay.stop();
        checkSec.addEventListener(TimerEvent.TIMER, checkerF);
        imgNum++;

  • How to use Load XML Data (Home Utilities Data Load/Unload Load)

    How is Load XML Data (Home>Utilities>Data Load/Unload>Load) supposed to work? Where is this documented?
    What table type/structure is required?
    How does this related to XDB functionality?

    It's not really documented that well in the XE redux documents (or even the base Apex Documents)- see http://download-west.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/sql_utl.htm#sthref2530
    However, it's reasonably easy to use - you can export a table to XML format, and then reload the table with the data by importing the XML document. It has nothing to do with XDB, it's just a different flat file representation for unloaded data than CSV

  • How to unload XML after loadXML()?

    Hi:
    I am new to LiveCycle Designer. I am trying to use loadXML() to load an external xml string like this:
    xfa.datasets.loadXML(xmlString, false, false);
    then I use "xfa.resolveNode()" to parse it and it works fine.
    The problem is that if I call loadXML() again passing a new xml string, I still retrieve the first one. I guess "loadXML()" always appends the incoming xml string to the current object model so it can't overwrite the first one. So my question is that can you unload the xml so that you can load it again with a new xml string, or is there different way to do this? Can you provide some sample code?
    Thanks.
    Ligong

    Try changing your third parameter to true when you're loading the new xml string:
    xfa.datasets.loadXML(xmlString,false,true);
    That should overwrite the existing...

Maybe you are looking for

  • How to upload data from application server

    Hi, please help me out in uploading the data from application server which is a tab delemited file into an internal table. Thanks kumar

  • Problem in BDC forJ1IS

    Hi sapgurus,                             i have a problem in time of BDC for J1IS. When BDC running if in J1is screen has more than two items then when i am giving the value in basic ,cess,hcess in more than two items.only one document no is generate

  • Variable Defaults in Light Weight Designer

    I have two Text variables(say NAME and COMPANY) in my project. Both of them are defaulted and are being used in my package. I created a scenario for the package by giving "Selectve Use" and selecting only the NAME variable as parameter to the scenari

  • Title to final cut pro

    how can i make my motion titles for my final cut pro project not jiggle? if i create titles in final cut pro, they also jiggle. thanks, dominic

  • Server Service refused to start: Access denied

    Hello, I am trying to start a service: - Server Service General: C:\WINDOWS\system32\svchost.exe -k netsvcs Log On: Local System Account This service has no dependency. I am getting an access denied... I am a Local Administrator on this server. Windo