Help!!  Problem in XML Functions!!!!

hi:
everyone!!
when i use the xml functions deletexml, insertxmlbefore, appendchildxml, insertchildxml to update the xml. i get a error:ORA-19039: Keyword DELETEXML reserved for future use.
here is my query string:update xml_table set xpo=deletexml(xpo, '/sh:Sender', xmltype(?))
but function updatexml can play well.
can anybody help me to solve the problem??? i am just beginning to use Oracle xml database.
Thanks.

oh,yes, you are right,my oracle version is 10.1.0.2.0. i don't pay attention to the difference between 10.1.* and 10.2.*. so i think the functions was also supported. i will get a version of 10.2.* to try.
thanks for your help:mdrake!!!

Similar Messages

  • Problem using XML function in procedures (internal error )

    Hi all,
    I use the XML function in a stored procedures but when i compile these i have this error PLS-00801: internal error (74806).
    The strangeness is that the single instruction launched from sql plus type
    SELECT XMLElement("? xml",xmlattributes('1.0' as "version")) FROM dual; it's right.
    thank.

    The Db version is 9.2.0.1
    This is the source:
    CREATE OR REPLACE procedure bi_create_XML_invoice as
    BEGIN
    declare
    in_file UTL_FILE.file_type;
    linebuf varchar2(1000);
    tmpstr varchar2(50);
    tmppririga varchar2(500);
    tmpsecriga varchar2(500);
    tmpdocinfo varchar2(500);
    BEGIN
    SELECT XMLElement("? xml",xmlattributes('1.0' as "version"))
    INTO tmppririga
    FROM dual;
    END;
    END bi_create_XML_invoice;
    Thanks

  • Help: Problems accessing XML file in WebSphere 3.5 Fix Pack 4 on Solaris

    We are having an emergent issue with WebSphere 3. 5 Fix Pack 4 on Solaris 2.6: The WAR file we deployed fails with runtime exception due to the inability
    to access a local resource(XML file) in the converted WAR file's web directory.
    The way we access this XML file is as follows:
    ServletContext theCon = getServletContext();
    URL u = theCon.getResource ("/web/test.xml");
    String newPath = u.toExternalForm ();
    InputStream is = new URL (newPath).openStream();
    The InputStream returned from the URL object is NULL.
    After checked the URL's externalForm string, we noticed that its protocol part is "classloader", e.g. the whole URL string is like "classloader:/opt/...../web/test.xml". However, if we replaced "classloader" with "file", the problem disappeared and the XML file can be read without error.
    Anybody know why "classloader:" in the URL string cause this problem, and what is the solution without changing the URL string?
    Thanks a lot!

    Hi,
    Can you try to replace the two last lines with:InputStream is = new FileInputStream (u.getFile());Hope this helps,
    Kurt.

  • Seeking help(problem while create function)

    hei..to everybody
    I am having a peculiar problem . whenever i create a function , I don't get the acknowledge message and I don't get any response and the function is not getting created.
    As we are running short of disk space , I was examing the disk space usage.I found that the oracle product disk space was about 65GB which is abnormal.
    please send me syntax of checking the tablespace usage.
    please help me to solve the problem
    by
    ravikumar

    It is not to do with space usage.
    Please copy & paste what you typed in SQL*Plus, for example here is what it should look like if you create an invalid function:
    SQL> CREATE OR REPLACE FUNCTION testfun
      2      RETURN VARCHAR2
      3  AS
      4  BEGIN
      5      RETURN;
      6  END;
      7  /
    Warning: Function created with compilation errors.
    SQL> show errors
    Errors for FUNCTION TESTFUN:
    LINE/COL ERROR
    5/5      PLS-00503: RETURN <value> statement required for this return from
             function
    SQL> ed
    Wrote file afiedt.buf
      1  CREATE OR REPLACE FUNCTION testfun
      2      RETURN VARCHAR2
      3  AS
      4  BEGIN
      5      RETURN 'Hello, world';
      6* END;
    SQL> /
    Function created.

  • Need help for Export to XML Functionality

    Hi All ,
    I have developed a report in Apex2.2 to export the data into XML format .
    I have used "export to XML" functionality and "HTF.escape_sc" function to escape special characters.The query is as follows..
    select
    HTF.escape_sc(replace (e.EVENT_NAME,'''','&'||'apos;')) AS EVENT_NAME ,
    HTF.escape_sc(replace (e.VENUE_NAME,'''','&'||'apos;')) AS VENUE_NAME ,
    HTF.escape_sc(replace (e.VENUE_ADDR,'''','&'||'apos;')) AS VENUE_ADDR ,
    HTF.escape_sc(replace (e.DESCRIPTION,'''','&'||'apos;')) AS DESCRIPTION ,
    HTF.escape_sc(replace (e.TRACKING_URL,'''','&'||'apos;')) AS TRACKING_URL ,
    HTF.escape_sc(replace (d.primary_product,'''','&'||'apos;')) AS primary_product
    from events e ,d_01 d
    where
    d.event_id = to_char(e.event_id)
    and e.publish = 'external'
    and e.searchable = 'Y'
    The output result in XML in APEX2.2 is absolutely fine , but when i moved the application to apex.oracle.com the XML report instead of '&' it is displaying "%26amp" .
    Is there any problem with APEX3.3 .
    Appreciate your quick response.
    Thanks
    Jyoti

    Jyoti,
    Replacing special characters from where? Report? Replacing by what?
    The code for the package is open. You may use the part in the package body:
    FOR i IN 1 .. CEIL (v_xml_l / 4000)
          LOOP
             v_xml_cut := SUBSTR (v_xml, v_count, 4000);
             HTP.prn (v_xml_cut);
             v_count := v_count + 4000;
          END LOOP;
    ...and do something like
    HTP.prn (REPLACE(v_xml_cut, '&amp;', '&amp;lt;'));
    ...Denes Kubicek

  • XML function help needed

    I am inserting an xml doc into a table with a CLOB column and have a Query such as this inside a dbms_xmlgen function :-
    SELECT XMLELEMENT("provider", XMLForest(DECODE(a1.CORP_ID,''D'',13478,''RR'',14450) as"provider-id"),
    xmlagg(XMLELEMENT( "Employee", XMLForest ( a18.EMP_FIRST_NM "first-name", a18.EMP_LAST_NM "last-name" ),XMLELEMENT("enc", XMLATTRIBUTES ( 'PWE-IL' AS "measure-set"),XMLForest ( a110.PP_DESC as "enc-flag",a18.EMP_ID as "emp-id",a12.EMP_AUX_RECORD_NBR as "Employee-group-number") )))) as "provider" .
    I want to supress the duplicated PROVIDER nodes in the resulting doc. If I remove the 'AS PROVIDER' tag, it takes the xml function XMLELEMENT on the first line as the NODE.
    I am at my wits end trying to get the duplicate tag out of the way. Please help...
    VR

    I want to supress the duplicated PROVIDER nodes in the resulting docWhat duplicate nodes are you talking about?:
    SQL> select xmlelement("provider", deptno, xmlagg(xmlelement(ename, ename))) as "provider" from emp
    group by deptno
    provider                                                                              
    <provider>10<ENAME>CLARK</ENAME><ENAME>KING</ENAME><ENAME>MILLER</ENAME></provider>   
    <provider>20<ENAME>SMITH</ENAME><ENAME>FORD</ENAME><ENAME>ADAMS</ENAME><ENAME>SCOTT</EN
    AME><ENAME>JONES</ENAME></provider>                                                   
    <provider>30<ENAME>ALLEN</ENAME><ENAME>BLAKE</ENAME><ENAME>MARTIN</ENAME><ENAME>TURNER<
    /ENAME><ENAME>JAMES</ENAME><ENAME>WARD</ENAME></provider>  

  • Is anybody else having a problem with Bluetooth functionality after iOS 7? I have lg tone Bluetooth headset that I use while working out, cutting the grass, etc. Before the update I could press the "next track", but anymore.... Help?! Please!!!!!!

    Is anybody else having a problem with Bluetooth functionality after iOS 7? I have lg tone Bluetooth headset that I use while working out, cutting the grass, etc. Before the update I could press the "next track", but anymore.... Help?! Please!!!!!!

    Tell Apple about it: http://www.apple.com/feedback/iphone.html
    Be sure to give as much detail as possible.
    I would also check LG's site.

  • I am facing a new problem with xml schema, plz help me

    Hi @,
    I am facing a problem with xml schema validation. Below is my code.
    public void initialize(String cfgFileName) {
    try {
    try {
    DOMParserWrapper parser = (DOMParserWrapper)Class.forName("dom.wrappers.DOMParser").newInstance();
    parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",true );
    parser.setFeature( "http://xml.org/sax/features/validation",true);
    parser.setFeature( "http://xml.org/sax/features/namespaces",true );
    parser.setFeature( "http://apache.org/xml/features/validation/schema",true );
    parser.setFeature( "http://apache.org/xml/features/validation/schema-full-checking",true );
    Document document = parser.parse(cfgFileName);
    System.out.println("Vijay .. code .. damar\n");
    }catch (org.xml.sax.SAXParseException spe) {
    } catch (org.xml.sax.SAXNotRecognizedException ex ){
    } catch (org.xml.sax.SAXNotSupportedException ex ){
    } catch (org.xml.sax.SAXException se) {
    if (se.getException() != null)
    se.getException().printStackTrace(System.err);
    else
    se.printStackTrace(System.err);
    }catch (Exception e) {
    System.out.println("Caught unknown exception : \n");
    e.printStackTrace(System.err);
    System.out.println("Vijay .. code .. success\n");
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    //docBuilder.setErrorHandler(myErrorHandler);
    cfg = docBuilder.parse(new File(cfgFileName));
    cfg .getDocumentElement ().normalize ();
    } catch (Exception e) {
    e.printStackTrace();
    In the above code I am parsing the xml file and i am doing schema validation. Schema validation is proper and it is validating correctly. Only problem is that, It is validating and showing error correctly correctly but it is not catching that error.
    For clear understanding I am printing one statement before parsing and after parsing.
    SYSTEM.OUT.PRINTLN("Vijay .. code .. damar\n") this is before parsing
    SYSTEM.OUT.PRINTLN("Vijay .. code .. success\n") this is after parsing
    Here what is happening means, It is validating correctly and showing error :
    [Error] nw_layout-new.xml:800:97: Datatype error: Value 'y' does not match regular expression facet 'yes|no'..
    Vijay .. code .. damar
    Vijay .. code .. success
    Here it is showing error and still continueing not catching.
    Plz give solution for this.
    Thanks
    vijay K

    Hello dipthebe,
    Check out the articles below go through troubleshooting steps for your iPhone when the screen is unresponsive. You may want to try and restore your iPhone as a new device and then test out what happens when you miss a call to see if the issue is still present afterwards.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/HT1414
    Regards,
    -Norm G.

  • Creating optional elements using SQL / XML functions

    Hi,
    I am struggling with some SQL / XML functionality in order to create some optional elements in a XMLType.
    I have one table with data to be generated into an XML document. The table looks like this (only the attributes related to the problem are shown):
    msg_id (pk)
    geslacht_hoofdverzekerde
    geboortedatum_hoofdverzekerde
    geslacht_medeverzekerde
    geboortedatum_medeverzekerde
    I have to create an XML document that looks like this:
    <ber:rekenparameters>
    <ber:verzekerde>
    <ber:codeRelatierol>HVZ</ber:codeRelatierol>
    <ber:geslacht>M</ber:geslacht>
    <ber:datumGeboorte>01-01-1960</ber:datumGeboorte>
    </ber:verzekerde>
    <ber:verzekerde>
    <ber:codeRelatierol>MVZ</ber:codeRelatierol>
    <ber:geslacht>V</ber:geslacht>
    <ber:datumGeboorte>01-01-1961</ber:datumGeboorte>
    </ber:verzekerde>
    </ber:rekenparameters>
    Where <ber:codeRelatierol> is hard coded: i.c. of hoofverzekerde 'HVZ' in case of medeverzekerde 'MVZ'.
    Geslacht en datumGeboorte are taken form the table.
    The element <ber:verzekerde> is obligatiry for hoofdverzekerde but optional for medeverzekerde: only in case geslacht_medeverzekerde and geboortedatum_medeverzekerde are not null this 2nd <ber:verzekerde> element has to be added.
    I created the next SQL (I skipped some stuff in order to focus on the problem):
    CREATE OR REPLACE
    VIEW dps_v_berekening_berichten
    AS
    SELECT msg_id as msg_id
    , XMLElement( "ber:berekening"
    , XMLAttributes( 'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"
    , 'http://www.mycompany.nl/berekenen' AS "xmlns:ber"
    , 'http://www.mycompany.nl/berekenen http://www.mycompany.nl/berekenen/berekening.xsd' AS "xsi:schemaLocation"
    , XMLElement( "ber:nummerRekenRegel"
    , XMLAttributes( 'http://www.mycompany.nl/berekenen' AS "xmlns:ber" )
    , 1
    , XMLElement( "ber:rekenparameters"
    , XMLAttributes( 'http://www.mycompany.nl/berekenen' AS "xmlns:ber" )
    , XMLElement( "ber:codeEvolutie" ) -- Empty
    , XMLElement( "ber:verzekerde"
    , XMLForest ( 'HVZ' AS "ber:codeRelatierol"
    , xoa.geslacht_hoofdverzekerde AS "ber:geslacht"
    , xoa.geboortedatum_hoofdverzekerde AS "ber:datumGeboorte"
    , XMLElement( "ber:verzekerde"
    , XMLForest ( 'MVZ' AS "ber:codeRelatierol"
    , xoa.geslacht_medeverzekerde AS "ber:geslacht"
    , xoa.geboortedatum_medeverzekerde AS "ber:datumGeboorte"
    -- Some more elements.
    ) AS bericht
    FROM DST_UP1_XML_OUTDATA xoa
    The problem is that the XMLForest always creates an <ber:verzekerde> element for medeverzekerde. I tried to create an inline view with just the "vezekerde"attributes and conditionally joining this inline view with the dst_up1_xml_outdata table. That didn't solve my problem. Because in case of a medeverzekerde available it returned two XML documenst: one that included the hoofdverzekerde and one that included the medeverzekerde. And obviously that's not what I want.
    I imagine I have to juggle with some of these SQL / XML functions although I cannot put the finger on the exact differences between some of these (XMLElement, XMLForest, XMLAgg, XMLSequence). The examples shown in de XML DB Developer's Guide don't seem to adress my problem.
    Help !

    Hi, are you talking about this part that you don't want to be there? I am not so clear about your requirements.
    XMLElement( "ber:verzekerde"
    , XMLForest ( 'MVZ' AS "ber:codeRelatierol"
    , xoa.geslacht_medeverzekerde AS "ber:geslacht"
    , xoa.geboortedatum_medeverzekerde AS "ber:datumGeboorte"
    If you want to control certain subelements so they don't appear, do not use xmlforest. Use xmlelement instead so it is easier to control it using case when. Mark (of Oracle, he should be here soon since OOW is over) showed me this technique and it helps tremendously, because oftentimes XDB will return an empty tag even though your consumers don't like it!
    try something like this,
    (case when xoa.geboortedatum_medeverzekerde = 'MVZ' then
    xmlelement("ber:verzekerde",
    xmlelement("What you want", colname),
    xmlelement("ber:codeRelatierol", 'MVZ'),
    (case when colname is not null or = some other value then
    xmlelement("Rest", colname))
    end)
    end),
    You may have to twig some details there. But the key is to use the case when construct to get rid of unwanted elements or empty elements. So you should only have the elements if you have a value of 'MVZ'. Hope this helps.
    Ben

  • Problem with XML in APEX ORA-06502

    i, I have a problem with XML generation, I developed an application in APEX, and in a html page I have this process:
    declare
    l_XML varchar2(32767);
    begin
    select xmlElement
    "iva",
    xmlElement("numeroRuc",J.RUC),
    xmlElement("razonSocial", J.RAZON_SOCIAL),
    xmlElement("idRepre", J.ID_REPRE),
    xmlElement("rucContador", J.RUC_CONTADOR),
    xmlElement("anio", J.ANIO),
    xmlElement("mes", J.MES),
    xmlElement
    "compras",
    select xmlAgg
    xmlElement
    "detalleCompra",
    --xmlAttributes(K.ID_COMPRA as "COMPRA"),
    xmlForest
    K.COD_SUSTENTO as "codSustento",
    K.TPLD_PROV as "tpldProv",
    K.ID_PROV as "idProv",
    K.TIPO_COMPROBANTE as "tipoComprobante",
    to_char(K.FECHA_REGISTRO, 'DD/MM/YYYY') as "fechaRegistro",
    K.ESTABLECIMIENTO as "establecimiento",
    K.PUNTO_EMISION as "puntoEmision",
    K.SECUENCIAL as "secuencial",
    to_char(K.FECHA_EMISION, 'DD/MM/YYYY') as "fechaEmision",
    K.AUTORIZACION as "autorizacion",
    to_char(K.BASE_NO_GRA_IVA, 9999999999.99) as "baseNoGraIva",
    to_char(K.BASE_IMPONIBLE, 9999999999.99) as "baseImponible",
    to_char(K.BASE_IMP_GRAV, 9999999999.99) as "baseImpGrav",
    to_char(K.MONTO_ICE, 9999999999.99) as "montoIce",
    to_char(K.MONTO_IVA, 9999999999.99) as "montoIva",
    to_char(K.VALOR_RET_BIENES, 9999999999.99) as "valorRetBienes",
    to_char(K.VALOR_RET_SERVICIOS, 9999999999.99) as "valorRetServicios",
    to_char(K.VALOR_RET_SERV_100, 9999999999.99) as "valorRetServ100"
    xmlElement
    "air",
    select xmlAgg
    xmlElement
    "detalleAir",
    xmlForest
    P.COD_RET_AIR as "codRetAir",
    to_char(P.BASE_IMP_AIR, 9999999999.99) as "baseImpAir",
    to_char(P.PORCENTAJE_AIR, 999.99) as "porcentajeAir",
    to_char(P.VAL_RET_AIR, 9999999999.99) as "valRetAir"
    from ANEXO_COMPRAS P
    where P.ID_COMPRA = K.ID_COMPRA
    AND P.ID_INFORMANTE_XML = K.ID_INFORMANTE_XML
    xmlElement("estabRetencion1", K.ESTAB_RETENCION_1),
    xmlElement("ptoEmiRetencion1", K.PTO_EMI_RETENCION_1),
    xmlElement("secRetencion1", K.SEC_RETENCION_1),
    xmlElement("autRetencion1", K.AUT_RETENCION_1),
    xmlElement("fechaEmiRet1", to_char(K.FECHA_EMI_RET_1,'DD/MM/YYYY')),
    xmlElement("docModificado", K.DOC_MODIFICADO),
    xmlElement("estabModificado", K.ESTAB_MODIFICADO),
    xmlElement("ptoEmiModificado", K.PTO_EMI_MODIFICADO),
    xmlElement("secModificado", K.SEC_MODIFICADO),
    xmlElement("autModificado", K.AUT_MODIFICADO)
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    AND K.ID BETWEEN 1 AND 25
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    declare
    l_XML CLOB;
    begin
    --Oculta XML
    sys.htp.init;
    wwv_flow.g_page_text_generated := true;
    wwv_flow.g_unrecoverable_error := true;
    --select XML
    select xmlElement
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+

    JohannaCevallos07 wrote:
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+The likeliest explanation for this is that length of the XML exceeds 32K, which is the maximum size that <tt>htp.p</tt> can output. A CLOB can store much more than this, so it's necessary to buffer the output as shown in +{message:id=4497571}+
    Help us to help you. When you have a problem include as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    And always post code wrapped in <tt>\...\</tt> tags, as described in the FAQ.
    Thanks

  • Need help with a xml photo gallery

    First, hello to everyone. My name is Tudor , i'm from Romania and i have a flash project which implies building an XML driven scrolling photo galery. Very sorry if my english will slip in some phrases. Well , the question for which i must get an answer is: I already built the gallery, everything works ok.... but ... when i want to make some changes when the pictures load .... well here is the problem. I will print the code and briefly explain and ask at the end....
    import com.greensock.TweenLite;
    import com.greensock.TweenMax;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.*;
    import fl.containers.UILoader;
    var MASK_WIDTH:Number = myMask_mc.width;
    var menuHolder:MovieClip = new MovieClip();
    //menuHolder.x = myMask_mc.x;
    //menuHolder.y = myMask_mc.y;
    addChild(menuHolder);
    var mouseIsOver:Boolean = false;
    var oldX:Number = menuHolder.x;
    menuHolder.mask = myMask_mc;
    import flash.filters.ColorMatrixFilter;
    import fl.motion.AdjustColor;
    var color : AdjustColor;
    var colorMatrix : ColorMatrixFilter;
    var matrix : Array;
    var filterBW : Array;
    color = new AdjustColor();
    color.brightness = 20;
    color.contrast = 20;
    color.hue = 0;
    color.saturation = -100;
    matrix = color.CalculateFinalFlatArray();
    colorMatrix = new ColorMatrixFilter(matrix);
    filterBW = [colorMatrix];
    /// HERE i read and parse the XML
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.load(new URLRequest("C:/Documents and Settings/Sm/Desktop/feteModel.xml"));
    function LoadXML(e:Event):void
    xmlData = new XML(e.target.data);
    ParsePictures(xmlData);
    function ParsePictures(input:XML):void
    var mainPictures:Array = new Array();
    var firstPictures:Array = new Array();
    var secondPictures:Array = new Array();
    var thirdPictures:Array = new Array();
    var forthPictures:Array = new Array();
    var dimensiuniArray:Array = new Array();
    var heightArray:Array = new Array();
    var eyeColorArray:Array = new Array();
    var hairColorArray:Array = new Array();
    var numeArray:Array = new Array();
    var mainPicturesList:XMLList = input.fata.pozaPrincipala;
    var firstPicturesList:XMLList = input.fata.poza1;
    var secondPicturesList:XMLList = input.fata.poza2;
    var thirdPicturesList:XMLList = input.fata.poza3;
    var forthPicturesList:XMLList = input.fata.poza4;
    var dimensiuniList:XMLList = input.fata.dimensiuni;
    var heightList:XMLList = input.fata.inaltime;
    var eyeColorList:XMLList = input.fata.culoare_ochi;
    var hairColorList:XMLList = input.fata.culoare_par;
    var numeList:XMLList = input.fata.nume;
    for each (var element1:XML in mainPicturesList)
    mainPictures.push(element1);
    for each (var element2:XML in numeList)
    numeArray.push(element2);
       /////////// HERE I LOAD THE PICTURES ...... i must say that menuItem is a mc - exported as a class , which basically has inside a textfield, a UILoader and a preloader - also movieclip. Also i need the pictures to be black and white when they are displayed and when the mouse is over to color
    for (var i=0; i < mainPictures.length; i++)
    var menuItem:MenuItem;
    menuItem = new MenuItem();
    menuItem.y = 200;
    menuItem.x =(i * (menuItem.width+1))+150;
    menuItem.itemLoader.filters = filterBW;
    menuItem.itemText.text = numeArray[i];
    menuItem.itemLoader.source = mainPictures[i];
    menuItem.itemLoader.maintainAspectRatio = false;
    menuItem.itemLoader.addEventListener(Event.COMPLETE, completeHandler);
    //menuItem.itemLoader.addEventListener(Event.COMPLETE,uiLoaded, false, 0, true);
    //menuItem.itemLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    //menuItem.itemLoader.load();
    //menuItem.preloader_mc.visible = true;
    function completeHandler(event:Event)
         //trace(menuItem.itemText.text);
    menuItem.mouseChildren = false;
    menuItem.buttonMode = true;
      menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
      menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
      //Add the menuItem to the menuHolder
      menuHolder.addChild(menuItem);
    menuHolder.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMenu);
    menuHolder.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMenu);
    function mouseOverMenu(e:Event):void
    mouseIsOver = true;
    //Calculate the vertical distance of how far the mouse is from
    //the topleft  of the mask.
    var distance:Number = mouseX - myMask_mc.x;
    //Calculate the distance in percentages
    var percentage:Number = distance / MASK_WIDTH;
    //Save the holder's old y coordinate
    oldX = menuHolder.x;
    var targetX:Number = -((menuHolder.width - MASK_WIDTH +150) * percentage) + myMask_mc.x;
    //Tween the menuHolder to the target coordinate
    TweenMax.to(menuHolder, 5, {x: Math.round(targetX)});
    //This function is called when the mouse is out of the menu
    function mouseOutMenu(e:Event):void
    mouseIsOver = false;
    var tw1:Tween;
    var tw2:Tween;
    function mouseOverItem(e:Event):void
    var item:MenuItem = e.target as MenuItem;
    menuHolder.addChild(item);
    item.itemLoader.filters = [];
    //trace(item.itemText.text);
    tw1 = new Tween(item,"scaleX", Strong.easeInOut,1, 1.25,0.25,true);
    tw2 = new Tween(item,"scaleY", Strong.easeInOut,1, 1.25,0.25,true);
    //This function is called when mouse moves out of the item
    function mouseOutItem(e:Event):void
    var item:MenuItem = e.target as MenuItem;
    item.itemLoader.filters = filterBW;
    tw1 = new Tween(item,"scaleX", Strong.easeInOut,1.25, 1,0.25,true);
    tw2 = new Tween(item,"scaleY", Strong.easeInOut,1.25, 1,0.25,true);
    Now , i want each picture to scale when it fully loads ... i thought it will be enough to put it on the completeHandler function , but here is the problem - it scales only the last picture ..... eg. if there are 5 , it scales only the 5th ..... i tried to trace the name of the picture inside the completeHandler and also , i got 4 identical names - the name of the last picture ...... my question  is : why is the completeHandler firing only for the last item?   anyone has any idea why this is hapening? and more how can i fix it? PLEASE ... i'm burning my brain here for half a day here ..........  THANKS in advance!!!!!!!!!!!!!!!!!!   
                                                                                                                                                                    REGARDS, Tudor

    If you are using a "for" loop to do the loading, it can process thru the entire set of loops before the first image is loaded.  If you want to have control over the loading you should load things sequencially.
    So instead of using a for loop, build a pseudo loop using an array of the files to load, a counter variable, a loading function, and a loadComplete function.  Have the loading function load just one image using the counter variable to identify which image in the array to load.  Have the loadComplete function process the one image that was just kloaded, increment the counter, and call the loading function if the counter value does not equal the length of the array.

  • Problem in xml query

    Hi
    I am working on BLS and having problem in xml query.I want to perform some calculation over xml columns.Than total of this as a new column.I can do this part in logic editor itself but can i do these both task by XSLT.
    Can be made our own XSLT for this ?
    I am feeling kind of fear to xslt. Can anybody help me in this.
    Thanks a lot in advance
    thomas

    Ram,
    In xMII there is a list of predefined xslt transforms that do something similar to what you are explaining.  The 3 that I think may be what you are looking for are
    they are under Calculation Transformations and Subtotal Transformation take a look at these and tell me if they are doing what you want to accomplish.  In the xMII help file do a search on Inline Transforms or navigate to Advanced Topics -> Inline Transforms -> Predefined Inline Transforms.  In this section there are examples of how to use these transforms and apply them in the query templates.  If this is not what you are looking for can you explain in a little more detail along with a simple example of how you want this transform to work.  Also why do you want to use xslt if you can already accomplish this in BLS?
    Regards,
    Erik

  • Need some help with a remove function

    Design and code a program that will maintain a list of product names. Use a String type to represent the product name and an array of strings to implement the list. Your program must implement the following methods:
    Add a product to the list
    Remove a product from the list
    Display then entire list
    Find out if a particular product is on the list.
    You need to create a command command loop with a menu() function. The program must continue asking for input until the user stops.
    This is the assignment and this is what I have so far. I need some help writing the remove function.
    Thanks
    * Title: SimpleSearchableList.java
    * Description: this example will show a reasonably efficient and
    * simple algorithm for rearranging the value in an array
    * in ascending order.
    public class SimpleSearchableList {
         private static String[] List = new String[25]; //These variables (field variables)
         private static int Size; //are common to the entire class, but unavailable
         //except to the methods of the class...
         public static void main(String[] args)
              String Cmd;
              for(;;) {
                   Menu();
                   System.out.print("Command: ");
                   Cmd = SimpleIO.inputString();
                   if(Cmd.equals("Quit"))
                        break;
                   else if(Cmd.equals("Fill"))
                        FillList();
                   else if(Cmd.equals("Search"))
                        SearchList();
                   else if(Cmd.equals("Show"))
                        ShowList();
                   else if(Cmd.equals("Remove"))
                        Remove();
         //Tells you what you can do...
         public static void Menu()
              System.out.println("Choices..................................");
              System.out.println("\tFill to Enter Product");
              System.out.println("\tShow to Show Products");
              System.out.println("\tSearch to Search for Product");
              System.out.println("\tRemove a Product");
              System.out.println("\tQuit");
              System.out.println(".........................................");
         //This method will allow the user to fill an array with values...
         public static void FillList()
              int Count;
              System.out.println("Type Stop to Stop");
              for(Count = 0 ; Count < List.length ; Count++)
                   System.out.print("Enter Product: ");
                   List[Count] = SimpleIO.inputString();
                   if(List[Count].equals("Stop"))
                        break;
              Size = Count;
         //This method will rearrange the values in the array so that
         // go from smallest to largest (ascending) order...
         public static void SearchList()
              String KeyValue;
              boolean NotFoundFlag;
              int Z;
              System.out.println("Enter Product Names Below, Stop To Quit");
              while(true)
                   System.out.print("Enter: ");
                   KeyValue = SimpleIO.inputString();
                   if(KeyValue.equals("Stop")) //Note the use of a method for testing
                        break; // for equality...
                   NotFoundFlag = true; //We'll assume the negative
                   for(Z = 0 ; Z < Size ; Z++)
                        if(List[Z].equals(KeyValue)) {
                             NotFoundFlag = false; //If we fine the name, we'll reset the flag
              System.out.println(List[Z] + " was found");
                   if(NotFoundFlag)
                        System.out.println(KeyValue + " was not found");     
         //This method will display the contents of the array...
         public static void ShowList()
              int Z;
              for(Z = 0 ; Z < Size ; Z++)
                   System.out.println("Product " + (Z+1) + " = " + List[Z]);
         public static void Remove()
    }

    I need help removing a product from the arrayYes. So what's your problem?
    "Doctor, I need help."
    "What's wrong?"
    "I need help!"
    Great.
    By the way, you can't remove anything from an array. You'll have to copy the remaining stuff into a new one, or maybe maintain a list of "empty" slots. Or null the slots and handle that. The first way will be the easiest though.

  • How to use XML functions in CEP

    Hi,
    I am trying to implement XML functions in CEP. But i am getting error while using XMl function in config.xml file.
    Please provide some help to resolve this issue.
    Adapter Class
    package com.bea.wlevs.example.adapter.XML_CEP;
    import com.bea.wlevs.ede.api.EventProperty;
    import com.bea.wlevs.ede.api.EventType;
    import com.bea.wlevs.ede.api.EventTypeRepository;
    import com.bea.wlevs.ede.api.RunnableBean;
    import com.bea.wlevs.ede.api.StreamSender;
    import com.bea.wlevs.ede.api.StreamSource;
    import com.bea.wlevs.util.Service;
    public class XMLAdapter implements RunnableBean, StreamSource {
    private String id;
    private String name;
    private StreamSender eventSender;
    private EventTypeRepository etr_;
    public XMLAdapter() {
    super();
    public void run() {
         setName("abc");
    generateMessage();
    public void setId(String id)
         this.id = id;
    public void setName(String i)
         this.name = i;
    @Service
    public void setEventTypeRepository(EventTypeRepository etr) {
         etr_ = etr;
    private void generateMessage() {
         EventType type = etr_.getEventType("XMLEvent");
         EventProperty messageProp = type.getProperty("name");
         EventProperty msgProp = type.getProperty("msg");
         Object event = type.createEvent();
         messageProp.setValue(event, name);
         msgProp.setValue(event, "<PDRecord><PDId>6</PDId><PDName>hello1</PDName></PDRecord>");
         eventSender.sendInsertEvent(event);
    public void setEventSender(StreamSender sender) {
    eventSender = sender;
    public synchronized void suspend() {
    EPN Assembly file
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
         xmlns:wlevs="http://www.bea.com/ns/wlevs/spring" xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
         xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
         xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="XMLEvent">
                   <wlevs:properties>
                        <wlevs:property name="msg" type="xmltype" />
                        <wlevs:property name="name" type="char" length="256" />
                   </wlevs:properties>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <wlevs:adapter advertise="true" id="XML_Adapter"
              class="com.bea.wlevs.example.adapter.XML_CEP.XMLAdapter">
              <wlevs:listener ref="IPStream" />
              <wlevs:instance-property name="id" value="123" />
              <wlevs:instance-property name="name" value="Kanika" />
         </wlevs:adapter>
         <wlevs:processor id="XML_processor" provider="cql">
              <wlevs:listener ref="OPStream" />
         </wlevs:processor>
         <wlevs:channel id="IPStream" event-type="XMLEvent">
              <wlevs:listener ref="XML_processor" />
         </wlevs:channel>
         <wlevs:channel id="OPStream" event-type="XMLEvent">
              <wlevs:listener ref="bean" />
         </wlevs:channel>
         <bean id="bean" class="com.bea.wlevs.example.outputBean.XML_CEP.OutputBean">
         </bean>
    </beans>
    Config.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
    <processor>
    <name>XML_processor</name>
    <rules>
              <query id="q1"><![CDATA[
             SELECT
                 XMLEXISTS(
                 "for $i in /PDRecord RETURN $i/PDName"       *// I am getting error at this line*       
             PASSING BY VALUE 
                    msg as "."
                     RETURNING CONTENT
                      ) XMLData
                  FROM IPStream
              ]]></query>
    </rules>
    </processor>
    </wlevs:config>
    Output Bean Class
    package com.bea.wlevs.example.outputBean.XML_CEP;
    import com.bea.wlevs.ede.api.EventType;
    import com.bea.wlevs.ede.api.EventTypeRepository;
    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.example.event.XML_CEP.DummyEvent;
    import com.bea.wlevs.util.Service;
    public class OutputBean implements StreamSink {
         EventTypeRepository etr_;
         @Service
         public void setEventTypeRepository(EventTypeRepository etr) {
              etr_ = etr;
    public void onInsertEvent(Object event) {
         EventType eventType = etr_.getEventType(event);
         String prop = (String)eventType.getPropertyValue(event, "name");
         String prop2 = (String)eventType.getPropertyValue(event, "msg");
         System.out.println("Tuple Message: " + prop + ":" + prop2);
    Error i am getting is:
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
         SELECT
                   XMLQUERY(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream
              >
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
         SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream
    generic syntax error. The syntax expects STRING token>
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServerTrace> <BEA-000000> <oracle.cep.parser.SyntaxException: generic syntax error>
    <Jun 29, 2011 7:53:59 PM IST> <Error> <CQLProcessor> <BEA-000000> <Failed to create statement [q1].
    Invalid statement: "SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream"
    Description: generic syntax error
    Cause: This DDL command has syntax error
    Action: The syntax expects STRING token>
    <Jun 29, 2011 7:53:59 PM IST> <Error> <Deployment> <BEA-2045016> <The application context "XML_CEP" could not be started. Could not initialize component
    "<unknown>":
    Invalid statement: "SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream"
    Description: generic syntax error
    Cause: This DDL command has syntax error
    Action: The syntax expects STRING token>
    <Jun 29, 2011 7:54:00 PM IST> <Notice> <Deployment> <BEA-2045001> <The application bundle "XML_CEP" was undeployed successfully>
    Thanks in advance.

    Hi Vikram,
    I need some more help from your side.
    It would be great help if you will let me know that how to extract the data from particular XML tag.
    As of now i want to extract particular XML node by applying that query and the result i am getting is: <applicationID>Engage</applicationID>
    I just want to know if I want to extract only data from this XML node i.e Engage instaed of *<applicationID>Engage</applicationID>*
    Then what will be the query?
    Thanks in Advance

  • Problem for xml generation using DBMS_XMLGEN

    Hi All,
    i have problem during xml generation using Any help would be highly appreciate
    how could we publish xml data using data base API DBMS_XMLGEN in oracle applications (APPS) i.e. at 'View Output" using
    Any help would be highly appreciate.
    Let me know if need more explanation, this is High priority for me.
    Thanks and Regards,
    [email protected]
    Message was edited by:
    user553699

    You can set the null attribute to true , so that the tag appears in your XML
    see the statement in Bold.
    DECLARE
    queryCtx dbms_xmlquery.ctxType;
    result CLOB;
    BEGIN
    -- set up the query context
    queryCtx := dbms_xmlquery.newContext(
    'SELECT empno "EMP_NO"
    , ename "NAME"
    , deptno "DEPT_NO"
    , comm "COMM"
    FROM scott.emp
    WHERE deptno = :DEPTNO'
    dbms_xmlquery.setRowTag(
    queryCtx
    , 'EMP'
    dbms_xmlquery.setRowSetTag(
    queryCtx
    , 'EMPSET'
    DBMS_XMLQUERY.useNullAttributeIndicator(queryCtx,true);
    dbms_xmlquery.setBindValue(
    queryCtx
    , 'DEPTNO'
    , 30
    result := dbms_xmlquery.getXml(queryCtx);
    insert into clobtable values(result);commit;
    dbms_xmlquery.closeContext(queryCtx);
    END;
    select * from clobtable
    <?xml version = '1.0'?>
    <EMPSET>
    <EMP num="1">
    <EMP_NO>7499</EMP_NO>
    <NAME>ALLEN</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>300</COMM>
    </EMP>
    <EMP num="2">
    <EMP_NO>7521</EMP_NO>
    <NAME>WARD</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>500</COMM>
    </EMP>
    <EMP num="3">
    <EMP_NO>7654</EMP_NO>
    <NAME>MARTIN</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>1400</COMM>
    </EMP>
    <EMP num="4">
    <EMP_NO>7698</EMP_NO>
    <NAME>BLAKE</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM NULL="YES"/>
    </EMP>
    <EMP num="5">
    <EMP_NO>7844</EMP_NO>
    <NAME>TURNER</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>0</COMM>
    </EMP>
    <EMP num="6">
    <EMP_NO>7900</EMP_NO>
    <NAME>JAMES</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM NULL="YES"/>
    </EMP>
    </EMPSET>
    http://sqltech.cl/doc/oracle9i/appdev.901/a89852/d_xmlque.htm

Maybe you are looking for

  • Text message report - unsuccessful

    I sent a text message with a photo and noticed an envelope icon and a black circle with an i in it next to the the message.  I did a long click and a list of message options was brought up.  I checked view report and status was listed as unsuccessful

  • Line Item Text ( Accounting Doc ) From Billing

    Hi Experts, As i know in Standard process, the Line item text FI Doc ( Accounting Document ) from billing doesn't have any value ( please correct me if i am wrong ). But in my case there is value in line item text ( billing doc no ) i already check a

  • Setting up proxy in Resin 3.0.16

    Hi, I am sitting behind a proxy and running resin server. Now i need to configure it to this proxy so that my application can access outside web resources thru this proxy. Because of that i am getting connectiontime out error. Thanks and regards, ank

  • External Procedure call - wait event - no response

    Executing SQL that use external library - I dont get any response I see wait event as 'External Procedure call' and no response, no errors are thrown. Am I missing something or how do I troubleshoot further... Your help very much appreciated. Please

  • Migrate Classificaiton using ICE

    Hello: I have a question regarding migrating the classification for documents in KM using the ICE tool.  I have classified a bunch of content into a taxonomy and now I would like to migrate all of that content into my stage environment.  Using the IC