How to retrieve elements from 3 different xml file in one url

Hi all,
Could anyone please let me how can we retrieve elements from 3 different xml file in one url?
i just can only do it with one file only, any help would very appreciate.
Thank in advance
Jim

Hi Philip
Thanks for replying me.
I tried on that way, In my mdx query i am using one slice attribute (i.e [Customer].[Gender].allmembers) in rows so getting error "The  Hierarchy already appears in Axis1".
SELECT
{[Measures].[Internet Sales Amount] } ON 0,
NON EMPTY
{[Customer].[Gender].allmembers } ON 1 -- Used
FROM
[Adventure Works]
WHERE
[Customer].[Gender].&[M]
,[Product].[Size Range].[(All)]
,[Customer].[Country].[All Customers]
[Customer].[Gender].[All Customers]
,[Product].[Size Range].&[XL]
,[Customer].[Country].[All Customers]
[Customer].[Gender].[All Customers]
,[Product].[Size Range].[(All)]
,[Customer].[Country].&[Australia]
Can you provide alternate ways to get resolved.
Thanks in advance

Similar Messages

  • How can I print mulitple different .ai files onto one page in Illustrator CS6?

    How can I print mulitple different .ai files onto one page in Illustrator CS6? I have all of the files organized by Arrange Documents>Tile All in Grid and I would like to print the files in this format so that they can all be seen at once when printed out onto one page.
    Some background is that I have 16 different cad drawings that I have converted and edited in illustrator. I'd like to basically make a contact sheet with all 16 drawings so that they can be reviewed on one sheet of paper after printing. But each drawing is in it's own unique file, and I have not figured out how to put them all onto one page for printing.

    You can place them (linked) into a new Illustrator file and print from there.
    The original files will need pdf compatability.

  • How to retrieve value from AIAInstallProperties.xml in AIA Flow.

    After PIP Developement, Installer team will build the OUI installer for the PIP.They will build the screens for our PIP based on the requirements we give them.We give them a list of properties that we need the installer to prompt for and then the installer will store the values entered by the user in AIAInstallProperties.xml file.When the code is written, these properties are used instead of hardcoding any machine names, usernames, passwords, etc. When the services are deployed the properties are replaced with the values in AIAInstallProperties.xml.
    How to retreive those values from AIAInstallProperties.xml file to your participating applications or any adapters in your code?
    When the services are deployed how the properties are getting replaced with the values in AIAInstallProperties.xml.?
    Can anyone explain the above two flow.
    Thanks in advance.

    Hi
    Prem Edwin's posting about AIAInstallProperties.xml is correct.
    Two points, the 11gR1 is a foundation pack only release, that is why the OUI is only built to collect FP related information. In the future, when PIPs arrive, new wizard steps will involve to collect PIP specific information during installation/deployment time.
    For your example of of getting a file location during installation, it would be effectively for your self-built PIPs. That is why the 11gR1 FP OUI would not support that.
    Also, there are only finite number of tokens can be detokenized from AIAInstallProperties.xml to composite.xml, if you were introducing a random new 'file path', I don't believe it would be replaced automatically by default in R1 time.
    Thanks!

  • How to retrieve IndividualStrings from a txt file using String Tokenizer.

    hello can any one help me to retrieve the individual strings from a txt file using string tokenizer or some thing like that.
    the data in my txt file looks like this way.
    Data1;
    abc; cder; efu; frg;
    abc1; cder2; efu3; frg4;
    Data2
    sdfabc; sdfcder; hvhefu; fgfrg;
    uhfhabc; gffjcder; yugefu; hhfufrg;
    Data3
    val1; val2; val3; val4; val5; val6;
    val1; val2; val3; val4; val5; val6;
    val1; val2; val3; val4; val5; val6;
    val1; val2; val3; val4; val5; val6;
    i need to read the data as an individual strings and i need to pass those values to diffarent labels,the dat in Data3 i have to read those values and add to an table datamodel as 6 columns and rows depends on the data.
    i try to retrieve data using buffered reader and inputstream reader,but only the way i am retrieving data as an big string of entire line ,i tried with stringtokenizer but some how i was failed to retrive the data in a way i want,any help would be appreciated.
    Regards,

    Hmmm... looks like the file format isn't even very consistent... why the semicolon after Data1 but not after Data2 or Data3??
    Your algorithm is reading character-by-character, and most of the time it's easier to let a StringTokenizer or StreamTokenizer do the work of lexical analysis and let you focus on the parsing.
    I am also going to assume your format is very rigid. E.g. section Data1 will ALWAYS come before section Data2, which will come before section Data3, etc... and you might even make the assumption there can never be a Data4, 5, 6, etc... (this is why its nice to have some exact specification, like a grammar, so you know exactly what is and is not allowed.) I will also assume that the section names will always be the same, namely "DataX" where X is a decimal digit.
    I tend to like to use StreamTokenizer for this sort of thing, but the additional power and flexibility it gives comes at the price of a steeper learning curve (and it's a little buggy too). So I will ignore this class and focus on StringTokenizer.
    I would suggest something like this general framework:
    //make a BufferedReader up here...
    do
      String line = myBufferedReader.readLine();
      if (line!=null && line.trim().length()>0)
        line = line.trim();
        //do some processing on the line
    while (line!=null);So what processing to do inside the if statement?
    Well, you can recognize the DataX lines easily enough - just do something like a line.startsWith("Data") and check that the last char is a digit... you can even ignore the digit if you know the sections come in a certain order (simplifying assumptions can simplify the code).
    Once you figure out which section you're in, you can parse the succeeding lines appropriately. You might instantiate a StringTokenizer, i.e. StringTokenizer strtok = new StringTokenizer(line, ";, "); and then read out the tokens into some Collection, based on the section #. E.g.
    strtok = new StringTokenizer(line, ";, ");
    if (sectionNo==0)
      //read the tokens into the Labels1 collection
    else if (sectionNo==1)
      //read the tokens into the Labels2 collection
    else //sectionNo must be 2
      //create a new line in your table model and populate it with the token values...
    }I don't think the delimiters are necessary if you are using end-of-line's as delimiters (which is implicit in the fact that you are reading the text out line-by-line). So the original file format you listed looks fine (except you might want to get rid of that rogue semicolon).
    Good luck.

  • How to retrieve data from this XML

    Hi
    I am getting below XML file and I need to get data from the file into table in a database ( SQL SERVER ). Please kindly help to shred and load the data into a table 
    <claimInvoice xmlns="http://www.XYZ.com">
      <INum>INum1</INum>
      <dueAmount xmlns="">1</dueAmount>
      <Billadd xmlns="">Billadd1</Billadd>
      <remittance xmlns="">
        <RemCom>RemCom1</RemCom>
      </remittance>
      <summary xmlns="">
        <title>title1</title>   
        <accountAging>
              <totalDue>1</totalDue>
        </accountAging>
    </summary>
    </claimInvoice>
    How Can i get  data for the following :
    INum,
    dueDate,
    Billadd,
    RemCom,
    title,
    totalDue
    Thanks
    Kodi

    see illustration below
    declare @x xml='<claimInvoice xmlns="http://www.XYZ.com">
    <INum>INum1</INum>
    <dueAmount xmlns="">1</dueAmount>
    <Billadd xmlns="">Billadd1</Billadd>
    <remittance xmlns="">
    <RemCom>RemCom1</RemCom>
    </remittance>
    <summary xmlns="">
    <title>title1</title>
    <accountAging>
    <totalDue>1</totalDue>
    </accountAging>
    </summary>
    </claimInvoice>'
    ;WITH XMLNAMESPACES ('http://www.XYZ.com' AS def)
    SELECT t.u.value('def:INum[1]','varchar(50)') AS INum,
    t.u.value('dueAmount[1]','int') AS dueAmount,
    t.u.value('Billadd[1]','varchar(10)') AS Billadd,
    t.u.value('(remittance/RemCom)[1]','varchar(50)') AS RemCom,
    t.u.value('(summary/title)[1]','varchar(50)') AS title,
    t.u.value('(summary/accountAging/totalDue)[1]','int') AS totalDue
    FROM @x.nodes('/def:claimInvoice')t(u)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Using Elements from an XML File

    Background: I am writing a config file for an applicaiton and inside this file on initial setup parameters are supplied. I can get some to work (i.e. directories and such), but when i try to give it the driver name for the database, the Class.forName method fails.
    I read out the value from the element:
    <sql_driver>"sun.jdbc.odbc.JdbcOdbcDriver"</sql_driver>Then when i try to apply that string to the Class.forName() method I get the following error.
    java.lang.ClassNotFoundException: "sun/jdbc/odbc/JdbcOdbcDriver"I don't understand why it shows up with "/" insead of "."
    Any thoughts would be great, I have been working this for a while.
    Thanks in advance,
    RDE

    I have tried it both ways, using the quotes in the xml file and putting the quotes in after I read the String out. I am just really confused as to why the String replaces "." for "/"..... Is there something I am missing?
                String driverName = ReadConfig.sqldriver;
                Class.forName(driverName);       
    or
                String driverName = '"' + ReadConfig.sqldriver + '"';
                Class.forName(driverName);Thanks

  • How to retrieve data from an Excel file which is located on server

    hi everybody,
                    I am using SAP NWDS 2004s .     
                I have done an application on how to export the table data into an Excel .
    Now i want to get the data from an Excel file which is located in server and display that data which is in excel in a View for example a Sample view in Webdynpro  .
    In Sample view i took a uielement textview to display the data ....   
    can any one help how to procced further
    Thanks in advance
    Madhavi

    Options to read Excel data to WebDynpro context
    Reading Excel Sheet from Java without using any Framework
    Reading Multiple Sheets of Excel Sheet from Java
    Few Threads
    How to Display the content of Excel file into Webdynpro Table
    Is it possible to upload data from excel file(.xls)
    Re: How to export the data as integer into excel sheet?
    regards
       Vinod

  • How to Insert data from an XML file into an Oracle 10g table

    Hello,
    Please can you help me as I have hit a brick wall with this problem.
    We are running version 10g Oracle and we will start receiving XML files with employee data that needs loading into a table, this is the XML file:
    <?xml version="1.0"?>
    <RECRUITS>
    <RECRUIT>
    <FIRST_NAME>Gordon</FIRST_NAME>
    <LAST_NAME>Brown</LAST_NAME>
    <SHORT_NAME>GORDONBROWN</SHORT_NAME>
    <APP_NO>00002</APP_NO>
    <STATUS>M</STATUS>
    <DATE_FROM>21-JUL-2006</DATE_FROM>
    <RESOURCE_TYPE>P</RESOURCE_TYPE>
    <TITLE>Mr</TITLE>
    <DATE_OF_BIRTH>28-DEC-1983</DATE_OF_BIRTH>
    <SOCIAL_SEC>AB128456A</SOCIAL_SEC>
    <PARTTIME_PCT>1</PARTTIME_PCT>
    <SEX>M</SEX>
    <ADDRESS_TYPE>1</ADDRESS_TYPE>
    <ADDRESS>A HOUSE SOMEWHERE HERE</ADDRESS>
    <ZIP_CODE>PE3 LLL</ZIP_CODE>
    <PLACE>BOROUGH</PLACE>
    <COUNTRY_CODE>UK</COUNTRY_CODE>
    <PROVINCE>UK</PROVINCE>
    <EMAIL>[email protected]</EMAIL>
    </RECRUIT>
    (FYI - there may be more than 1 employee in each file so all of the above will be repeated X amount of times)
    </RECRUITS>
    To make things simple we have created a table which mirrors the XML file completely to load the data into, the SQL i have used is thus:
    CREATE TABLE RECRUITMENT
    FIRST_NAME VARCHAR2(30),
    LAST_NAME VARCHAR2(30),
    SHORT_NAME VARCHAR2(30),
    APP_NO NUMBER,
    STATUS VARCHAR2(1),
    DATE_FROM DATE,
    RESOURCE_TYPE VARCHAR2(1),
    TITLE VARCHAR2(4),
    DATE_OF_BIRTH DATE,
    SOCIAL_SEC VARCHAR2(9),
    PARTTIME_PCT NUMBER,
    SEX VARCHAR2(1),
    ADDRESS_TYPE VARCHAR2(1),
    ADDRESS VARCHAR2(30),
    ZIP_CODE VARCHAR2(8),
    PLACE VARCHAR2(10),
    PROVINCE VARCHAR2(3),
    EMAIL VARCHAR2(20)
    Every method we try from the numerous documents and so called "user guides" have failed, please can somebody show me the PL/SQL i need to get this files data into the above table?
    We need to be able to do this purely through SQL*PLUS as we hope - if we ever get it working manually to create a procuedure that will encapsulate everything so it can be run over and over again.
    The XML file is sitting in the XMLDIR and is called REC.XML.
    Please help : (

    Hi, I have got some material for inserting data into oracle table from xml file, this might help you.
    Create XML Document Table
    create table XML_DOCUMENT_TABLE
    FILENAME varchar2(64),
    XML_DOCUMENT XMLTYPE
    (This will be as per your record details).
    Inserting record to Oracle Table
    declare
    XML_TEXT CLOB := '<smsnotification>
                   <messageid> 256427844 </messageid>
              <protocolid> CO0NPS2KHQ </protocolid>
              <notifiedon> 1156123007416 </notifiedon>
              <status> 3PBI: Invalid </status>
    <additionalinfo> Customer account not active </additionalinfo>
    <carrierid> 1175 </carrierid>
    </smsnotification>';
    begin
    insert into XML_DOCUMENT_TABLE values ('Receipt.xml',XMLTYPE(XML_TEXT));
    end;
    Select Statement
    select extractValue(XML_DOCUMENT,'/smsnotification/messageid') Messageid,
    extractValue(XML_DOCUMENT,'/smsnotification/status') Status,
    extractValue(XML_DOCUMENT,'/smsnotification/carrierid') CarrierID
    from XML_DOCUMENT_TABLE;

  • How to remove element namespaces in XML file using DOM or SAX?

    Hi Guys,
    I developed a JAVA mapping in XI to add name spaces for XML file, after mapping,name spaces xmlns="http://www.mro.com/mx/integration" and xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" were added correctly, but for some nodes, such as <Header> and <Content>, a name space xmlns="" was added automatically.Please check below files to compare.
    It looks like be added automatically by XI. I didn't process anything for these nodes in JAVA program.
    Now the issue is, how can I remove these redundant namespaces? Such as xmlns="".
    Can I remove them using DOM or SAX in JAVA Mapping?
    Thanks in advance.
    ====>Original XML file
    <?xml version="1.0" encoding="UTF-8"?>
    <LLYLPPInterface language="EN">
       <Header>
          <SenderID>GBIP</SenderID>
          <CreationDateTime>2008-02-13T22:49:34-05:00</CreationDateTime>
          <RecipientID/>
          <MessageID/>
       </Header>
       <Content>
          <LLY-LPP>
             <INVOICE>
                <INVOICELINE>
                   <PONUM>4780000008</PONUM>
                   <POLINENUM>1</POLINENUM>
                   <INVOICEQTY>1</INVOICEQTY>
                   <LOADEDCOST>68</LOADEDCOST>
                </INVOICELINE>
             </INVOICE>
          </LLY-LPP>
       </Content>
    </LLYLPPInterface>
    ===>Target XML file after JAVA mapping
    <?xml version="1.0" encoding="utf-8"?>
    <LLYLPPInterface language="EN" xmlns="http://www.mro.com/mx/integration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <Header xmlns="">
              <SenderID>GBIP</SenderID>
              <CreationDateTime>2008-02-13T23:11:55-05:00</CreationDateTime>
              <RecipientID/>
              <MessageID/>
         </Header>
         <Content xmlns="">
              <LLY-LPP>
                   <INVOICE>
                        <INVOICELINE>
                             <PONUM>4780000008</PONUM>
                             <POLINENUM>0</POLINENUM>
                             <INVOICEQTY>1</INVOICEQTY>
                             <LOADEDCOST>68</LOADEDCOST>
                        </INVOICELINE>
                   </INVOICE>
              </LLY-LPP>
         </Content>
    </LLYLPPInterface>
    Edited by: Eddie Zhang on Feb 14, 2008 9:22 AM
    Edited by: Eddie Zhang on Feb 14, 2008 9:24 AM

    Hi Milan,
    Thanks for your replay.
    Actually when I used module XMLAnonymizerBean to convert namespaces, the header of XML, such as <?xml version="1.0" encoding="UTF-8"?> was converted to format <?xml version='1.0' encoding='UTF-8'?>, quote was converted to single quote. Although I set parameter anonymizer.quote = ", it still didn't work, single quote appeared instead of quote.
    I'm not sure why this happened. Can anyone help to clarify this?
    Thanks
    Edited by: Eddie Zhang on Feb 15, 2008 2:11 AM

  • Photoshop album starter edition 3.2  how to retrieve photos from obsolete locked file?

    photoshop album starter edition 3.2   how to retri
    eve photos from obsolete locked file?

    Try in that product's forum
    http://forums.adobe.com/community/ps_album_starter

  • How to load movies from a xml file?

    I have a movie called "index.swf" and a class called "index.as"
    The problem is that loads the movies in the same position.
    index.as:
    package
        import flash.utils.getDefinitionByName;
        import flash.display.Loader;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.display.Loader;
        import flash.events.ProgressEvent;
        import flash.display.MovieClip;
        public class index extends Sprite
            private var _xml:XML;
            private var swf_id:String
            private var swf_m:String
            private var swf_x:Number
            private var swf_y:Number
            private var swf_width:Number
            private var swf_height:Number
    function startLoad()
    var mLoader:Loader = new Loader();
    var mRequest:URLRequest = new URLRequest(swf_m);
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
    mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
    mLoader.name=swf_id
    mLoader.load(mRequest);
    function onCompleteHandler(loadEvent:Event)
    loadEvent.currentTarget.content.width=swf_width
    loadEvent.currentTarget.content.height=swf_height
    addChild(loadEvent.currentTarget.content);
    function onProgressHandler(mProgress:ProgressEvent)
    var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
    trace(percent);
            public function index()
                loadXMLFile();
            private function loadXMLFile():void
                var loader= new URLLoader(new URLRequest("/configuracion.xml"));
                loader.addEventListener(Event.COMPLETE, loadedCompleteHandler);
            private function loadedCompleteHandler(e:Event):void
                e.target.removeEventListener(Event.COMPLETE, loadedCompleteHandler);
                _xml = XML(e.target.data);
                for each (var conf:XML in _xml.secciones.seccion) {
                   swf_id = conf.id
                    swf_m = conf.nombre;
                    swf_x = conf.pos_x
                    swf_y = conf.pos_y
                    swf_width = conf.width
                    swf_height = conf.height
                    startLoad();
    Xml File: "configuracion.xml"
    <?xml version="1.0" encoding="utf-8"?>
    <config>
      <secciones>
        <seccion>
          <id>1</id>
          <nombre>pelicula1.swf</nombre>
          <pos_x>20</pos_x>
          <pos_y>10</pos_y>
          <width>200</width>
          <height>200</height>
        </seccion>
        <seccion>
          <id>2</id>
          <nombre>pelicula2.swf</nombre>
          <pos_x>80</pos_x>
          <pos_y>10</pos_y>
          <width>200</width>
          <height>200</height>
        </seccion>
      </secciones>
    </config>
    thanks for your help...

    thanks rziller
    I already tried this,
    x,y values work...
    height and width values do not work.....
    thanks but I fix the problem....
    here this...
    package
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.display.Loader;
       public class index extends Sprite
            private var _xml:XML;
            private var i:Number=0;
            private var Swf_List:Array = new Array();
            private var mLoader:Loader;
                function startLoad()
                     mLoader = new Loader();
                     var mRequest:URLRequest = new URLRequest(Swf_List[i][1]);
                     mLoader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
                     mLoader.load(mRequest);   
                     mLoader.name=Swf_List[i][0]
                     addChild(mLoader);
                function initHandler(event:Event):void {
                    var ii:Number = event.target.loader.name-1
                    event.target.loader.x=Swf_List[ii][2]
                    event.target.loader.y=Swf_List[ii][3]
                    event.target.loader.width=Swf_List[ii][4];       
                    event.target.loader.height=Swf_List[ii][5];
                    trace(event.target.loader.name)
                public function index()
                loadXMLFile();
                private function loadXMLFile():void
                    var loader= new URLLoader(new URLRequest("config.xml"));
                    loader.addEventListener(Event.COMPLETE, loadedCompleteHandler);
                private function loadedCompleteHandler(e:Event):void
                    e.target.removeEventListener(Event.COMPLETE, loadedCompleteHandler);
                    _xml = XML(e.target.data);
                    _xml.ignoreWhitespace=true;
                        for each (var conf:XML in _xml.secciones.seccion)
                            Swf_List[i] = [conf.id,conf.nombre,conf.pos_x,conf.pos_y,conf.width,conf.height];
                            startLoad()
                            i++;
    maybe not the best way....
    but it works!!!.........

  • How to read elements in a xml file sent as a string

    Hi,
    I am new to BPEL and i am working on a requirement where i receive the XML message as a String from an AQ. And I am not able parse the xml to read the individual elements of it. Appreciate your help on this.
    The (sample)input message from Q is which i am able to see in the BPEL console:
    <BUGINFO_XML>
    <XML_MESSAGE>
    <?xml version="1.0"?>
    <BUGINFO>
    <SR_ID>3-29OU7OF</SR_ID>
    <OBJECT_TYPE>UPDATE_PREBUG</OBJECT_TYPE>
    <RESERVED_BUG_NUM>8221084</RESERVED_BUG_NUM>
    <TYPE>Predefect Update</TYPE>
    <AUDIENCE>INTERNAL</AUDIENCE>
    <COMMENT>TEST activity by Sireesha</COMMENT>
    </BUGINFO>
    </XML_MESSAGE>
    </BUGINFO_XML>
    and the corresponding xsd file is:
    <schema targetNamespace="http://xmlns.oracle.com/xdb/ORIONCC"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:ORIONCC="http://xmlns.oracle.com/xdb/ORIONCC"
    elementFormDefault="unqualified" attributeFormDefault="qualified">
    <complexType name="BUGINFO_XML">
    <sequence>
    <element name="XML_MESSAGE" type="string" nillable="true" minOccurs="0"/>
    </sequence>
    </complexType>
    <element name="BUGINFO_XML" type="ORIONCC:BUGINFO_XML" />
    </schema>
    i have created a variable(called VariableXML) of element type of the above xsd type({http://xmlns.oracle.com/xdb/ORIONCC}BUGINFO_XML) and using ora:parseEscapedXML method, i copied the input data to this variable and i can see the data copied fine to this variable, but after that i am not able to traverse to the individual element of it say i want the value of SR_ID which i am not able to get.
    <VariableXML>
    <BUGINFO_XML>
    <SR_ID>3-29OU7OF</SR_ID>
    <OBJECT_TYPE>UPDATE_PREBUG</OBJECT_TYPE>
    <RESERVED_BUG_NUM>8221084</RESERVED_BUG_NUM>
    <TYPE>Predefect Update</TYPE>
    <AUDIENCE>INTERNAL</AUDIENCE>
    <COMMENT>TEST activity by Sireesha</COMMENT>
    </BUGINFO_XML>
    </VariableXML>
    When i see the structure of this variable in the Assign activity i can see only up to '/ns2:BUGINFO_XML/XML_MESSAGE' but not the individual elements.
    Please let me know how can i parse this xml to read the elements of it.
    I am using jdev 11.1.1.4 and weblogic 10.3
    Thanks,
    Sireesha
    Edited by: user12217808 on Jul 27, 2012 7:10 AM

    Thanks for replying Tarak,
    I have taken the XML generated by VariableXML variable and generated a XSD out of it and that looks like below.
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="BUGINFO_XML">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="SR_ID" type="xsd:string"/>
    <xsd:element name="OBJECT_TYPE" type="xsd:string"/>
    <xsd:element name="RESERVED_BUG_NUM" type="xsd:integer"/>
    <xsd:element name="TYPE" type="xsd:string"/>
    <xsd:element name="AUDIENCE" type="xsd:string"/>
    <xsd:element name="COMMENT" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Then I have created a variable called VariableBugInfo of this element type ({http://www.example.org}BUGINFO_XML) and tried parsing it as below.
    <assign name = 'Assign2'>
    <copy>
    <from expression="oraext:parseXML(bpws:getVariableData('VariableXML','/ns2:BUGINFO_XML'))"/>
    <to variable="VariableBugInfo" query="/ns4:BUGINFO_XML"/>
    </copy>
    </assign>
    then i got the below error in the bpel console when im testing my bpel process.
    The following exception occurred while attempting to execute operation copy at line 118
    <?xml-stylesheet href="chrome://global/locale/intl.css" type="text/css"?>
    -<parsererror>
    XML Parsing Error: junk after document element
    Location: http://slce26vm164.us.oracle.com:7001/em/ai/sca/share/audit/nfdg/displayInstance.jsp?locatorobjkey=Farm_mosbpelmosbpelsoa_server1soa-infra&instanceid=bpel%3A70555
    Line Number 7, Column 1:
    <sourcetext>
    <root class="javax.xml.xpath.XPathExpressionException">internal xpath error<stack><f>oracle.xml.xpath.JXPathExpression.evaluate#242</f><f>com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate#240</f><f>com.collaxa.cube.engine.ext.bpel.common.BPELWMPHelper.evalFromValue#339</f><f>com.collaxa.cube.engine.ext.bpel.v1.wmp.BPEL1AssignWMP.__executeStatements#137</f><f>com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform#158</f><f>com.collaxa.cube.engine.CubeEngine._performActivity#2463</f><f>com.collaxa.cube.engine.CubeEngine.performActivity#2334</f><f>com.collaxa.cube.engine.CubeEngine.handleWorkItem#1115</f><f>com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal#73</f><f>com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage#220</f><f>com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory#328</f><f>com.collaxa.cube.engine.CubeEngine.endRequest#4350</f><f>com.collaxa.cube.engine.CubeEngine.endRequest#4281</f><f>com.collaxa.cube.engine.CubeEngine.createAndInvoke#679</f><f>com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke#654</f><f>com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke#293</f><f>...</f></stack></root>
    ^
    </sourcetext>
    </parsererror>
    but when i tried a normal copy from VariableXML BUGINFO to VariableBugInfo as below, i am not getting any error but its not actually copying the contents to individual tags, because after this Assign i created a simple string variable(objTypeVar) and when i tried to copy TYPE element value to it, it says 'The result is empty for the XPath expression : "/ns4:BUGINFO_XML/ns4:TYPE".'
    <assign name="Assign2">
    <copy>
    <from variable="VariableXML" query="/ns2:BUGINFO_XML"/>
    <to variable="VariableBugInfo" query="/ns4:BUGINFO_XML"/>
    </copy>
    </assign>
    <assign name="Assign3">
    <copy>
    <from variable="VariableBugInfo"
    query="/ns4:BUGINFO_XML/ns4:TYPE"/>
    <to variable="objTypeVar"/>
    </copy>
    </assign>
    Result in console for VariableBugInfo for Assign2:
    <VariableBugInfo>
    <BUGINFO_XML>
    <SR_ID>3-29OU7OF</SR_ID>
    <OBJECT_TYPE>UPDATE_PREBUG</OBJECT_TYPE>
    <RESERVED_BUG_NUM>8221084</RESERVED_BUG_NUM>
    <TYPE>Predefect Update</TYPE>
    <AUDIENCE>INTERNAL</AUDIENCE>
    <COMMENT>TEST activity by Sireesha</COMMENT>
    </BUGINFO_XML>
    </VariableBugInfo>
    For Assign 3:
    Error in evaluate <from> expression at line "141". The result is empty for the XPath expression : "/ns4:BUGINFO_XML/ns4:TYPE".
    I feel there is something i am missing in the XSD and the target namespace which is causing the issue. I am not sure what i should provide in the target namesapce in the new xsd which i created based on the value of VariableXML , so that it actually parses the xml and copies exact elements of it.
    Please let me know if i am doing something wrong anywhere.
    Thanks,
    Sireesha

  • Retrieve element from an XML variable

    I have a BPEL process that takes in a XML message and from that message I want to parse out one element.
    Using BPEL v10.1.3.3.0
    Here is the xsd's, (use a wrapper for adding the name space)
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="TempNamespace"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:version="DTD">
    <include schemaLocation="VendorMasterBridge_2_1.xsd"/>
    </schema>
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="VendorMasterBridge">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="VendorMaster" minOccurs="1" maxOccurs="unbounded">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="VendorNumber" minOccurs="1" type="xs:string"/>
    <xs:element name="VendorName" minOccurs="0" type="xs:string"/>
    <xs:element name="BatchCtrlNbr" minOccurs="0" type="xs:string"/>
    <xs:element name="Error" minOccurs="0" type="xs:string"/>
    <xs:element name="VendorMasterFields" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="DateCreated" minOccurs="0" type="xs:dateTime"/>
    <xs:element name="Address1" minOccurs="0" type="xs:string"/>
    <xs:element name="Address2" minOccurs="0" type="xs:string"/>
    <xs:element name="PassReqdAutoCreate" minOccurs="0" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="id" use="optional" type="xs:string"/>
    <xs:attribute name="version" use="optional" type="xs:string" default="2.1"/>
    <xs:attribute name="timestamp" use="optional" type="xs:dateTime"/>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    I use the Assign activity to try and get the Address1 field
    <assign name="Assign_1">
    <copy>
    <from variable="Vendxml" part="VendorMasterBridge"
    query="/ns3:VendorMasterBridge/VendorMaster/VendorMasterFields/Address1"/>
    <to variable="addr"/>
    </copy>
    </assign>
    When I deploy and run the BPEL process I get this error
    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result.
    xpath variable/expression expression "/ns3:VendorMasterBridge/VendorMaster/VendorMasterFields/Address1" is empty at line 87, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns3:VendorMasterBridge/VendorMaster/VendorMasterFields/Address1" is not empty.
    </summary>
    </part></selectionFailure>
    Here is the XML used for input
    <invWriteVendor_Enqueue_InputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="VendorMasterBridge">
    <VendorMasterBridge xmlns:ns0="TempNamespace" id="RMS">
    <VendorMaster xmlns="">
    <VendorNumber>1077952523</VendorNumber>
    <VendorName>UNIFLEX</VendorName>
    <VendorMasterFields>
    <Address1>383 W COMBO AVE</Address1>
    <Address2>PO BOX 9004</Address2>
    <City>HICKSVILLE</City>
    <StateCode>NY</StateCode>
    <Zip>11801-9004</Zip>
    <Country>USA</Country>
    <TelephoneNumber>05169322400</TelephoneNumber>
    <StatusCode>00</StatusCode>
    </VendorMasterFields>
    </VendorMaster>
    </VendorMasterBridge>
    </part></invWriteVendor_Enqueue_InputVariable>
    Can someone help me know what I am doing wrong?
    If I do an assign of the input xml to another xml of the same message type all the fields transfer. I only run into this issue if I am trying to access a specific element.
    Thanks for any help on this,

    Thanks for the reply, but could you be a little more specific? Problem with the namespace where, in the incoming message? Is it defined wrong in the BPEL process? A mis-match somewhere?
    I kind of figured it was a namespace issue but I can not seem to track it down.

  • How to insert rows from an  xml file to a table

    im Using Oracle 11g It is showing below error when i execute..
    declare
    charString varchar2(80);
    finalStr varchar2(400) := null;
    rowsp integer;
    v_FileHandle UTL_FILE.FILE_TYPE;
    begin
    -- the name of the table as specified in our DTD
    xmlgen.setRowsetTag('Zipcodes');
    -- the name of the data set as specified in our DTD
    xmlgen.setRowTag('mappings');
    -- for getting the output on the screen
    dbms_output.enable(100000);
    -- open the XML document in read only mode
    v_FileHandle := utl_file.fopen(TMP_DIR1,'XML_NEW_CITIES.XML', 'r');
    loop
    BEGIN
    utl_file.get_line(v_FileHandle, charString);
    exception
    when no_data_found then
    utl_file.fclose(v_FileHandle);
    exit;
    END;
    dbms_output.put_line(charString);
    if finalStr is not null then
    finalStr := finalStr || charString;
    else
    finalStr := charString;
    end if;
    end loop;
    -- for inserting the XML data into the table
    rowsp := xmlgen.insertXML('SYS.ZIPCODES',finalStr);
    dbms_output.put_line('INSERT DONE '||TO_CHAR(rowsp));
    xmlgen.resetOptions;
    end;
    XML_NEW_CITIES.XML is
    <?xml version = '1.0'?>
    <Zipcodes>
    <mappings Record="4">
    <STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
    <ZIPCODE>94301</ZIPCODE>
    <CITY>Palo Alto</CITY>
    </mappings>
    <mappings Record="5">
    <STATE_ABBREVIATION>CO</STATE_ABBREVIATION>
    <ZIPCODE>80323</ZIPCODE>
    <ZIP_CODE_EXTN>9277</ZIP_CODE_EXTN>
    <CITY>Boulder</CITY>
    </mappings>
    </Zipcodes>
    Error report:
    ORA-06550: line 8, column 3:
    PLS-00201: identifier 'XMLGEN.SETROWSETTAG' must be declared
    ORA-06550: line 8, column 3:
    PL/SQL: Statement ignored
    ORA-06550: line 10, column 3:
    PLS-00201: identifier 'XMLGEN.SETROWTAG' must be declared
    ORA-06550: line 10, column 3:
    PL/SQL: Statement ignored
    ORA-06550: line 14, column 34:
    PLS-00201: identifier 'TMP_DIR1' must be declared
    ORA-06550: line 14, column 3:
    PL/SQL: Statement ignored
    ORA-06550: line 31, column 12:
    PLS-00201: identifier 'XMLGEN.INSERTXML' must be declared
    ORA-06550: line 31, column 3:
    PL/SQL: Statement ignored
    ORA-06550: line 33, column 3:
    PLS-00201: identifier 'XMLGEN.RESETOPTIONS' must be declared
    ORA-06550: line 33, column 3:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error
    Edited by: 898235 on Nov 20, 2011 11:02 PM

    OK, then did you try the XMLTable example, or are you waiting for someone to write it all down for you? :)
    You first have to create an Oracle directory object pointing to the physical location of your file (must be somewhere on the db server or at least a location the db server can access on the network).
    Then create the procedure, in this case a simple INSERT SELECT :
    SQL> create directory tmp_dir as 'c:\temp';
    Directory created
    SQL> create table zipcodes (
      2   state_abbreviation  varchar2(2),
      3   zipcode             varchar2(5),
      4   zip_code_extn       varchar2(10),
      5   city                varchar2(80)
      6  );
    Table created
    SQL> CREATE OR REPLACE PROCEDURE insertZipcodes (
      2    p_directory IN VARCHAR2
      3  , p_filename  IN VARCHAR2
      4  )
      5  IS
      6  BEGIN
      7 
      8    INSERT INTO zipcodes (state_abbreviation, zipcode, zip_code_extn, city)
      9    SELECT state_abbreviation
    10         , zipcode
    11         , zip_code_extn
    12         , city
    13    FROM XMLTable('/Zipcodes/mappings'
    14           passing xmltype(bfilename(p_directory, p_filename), nls_charset_id('AL32UTF8'))
    15           columns state_abbreviation varchar2(2)  path 'STATE_ABBREVIATION'
    16                 , zipcode            varchar2(5)  path 'ZIPCODE'
    17                 , zip_code_extn      varchar2(10) path 'ZIP_CODE_EXTN'
    18                 , city               varchar2(80) path 'CITY'
    19         )
    20    ;
    21 
    22  END;
    23  /
    Procedure created
    SQL> exec insertZipcodes('TMP_DIR', 'xml_new_cities.xml');
    PL/SQL procedure successfully completed
    SQL> commit;
    Commit complete
    SQL> select * from zipcodes;
    STATE_ABBREVIATION ZIPCODE ZIP_CODE_EXTN CITY
    CA                 94301                 Palo Alto
    CO                 80323   9277          Boulder

  • How to append data from different import files?

    Dear experts,
    The customer is having different applications running that will output imports files BPC needs at a different time of process. Is it possible to append data which already exist in BPC from import?
    eg. BPC already has a record
    Factory1, Actual, 2008.OCT, Movement1, 30
    import file-
    Factory1, Actual, 2008.OCT, Movement1, 100
    and I need to add them up to become 130.
    Looks like regular import will only replace the original record by the new imported value. I'm still trying...
    Thanks a lot,
    Jim Hsu

    I do not think there is a way to use a standard import package to perform this action.  Typically when you are importing, you are saying this is the new value.  Not increment/decrement the value. 
    I have never had to implement a solution for a problem like this.  However, I would write a custom SSIS package that would extract the BPC data for the same dimensionality being imported and append it with the import file, then import the combined file.  Values sharing the same dimensionality in the same import file are aggregated on the actual import.
    SO your input file has 30, the export gets 100, the combined file has both and the actual value imported would be 130.
    That would be the approach I would take, but others might have more experience in different areas.

Maybe you are looking for

  • GATHER_TABLE_STATS - Can "Estimate percent" be 50?

    Hi All, I am using the DBMS_STATS utility to gather statistics for a table containing 700,000 rows. Before: Estimate_Percent was 20. It took a query 45 mins to execute. After: I increased Estimate_Percent to 50. It took the same query 7 mins to execu

  • Sound through speakers & headphones with Mac Pro & Vista?

    Hi, Not sure where to post this but here goes: I have a current model Mac pro and a set of Harmon Kardon soundsticks plugged in. All is well in OS X but when in Vista i can't get sound just through the headphones? It comes through both the headphones

  • Pluggable mapping in ODI?

    Hi guys! I was wondering if ODI has a similar functionality to OWB pluggable mapping? If yes please tell me how ;) With regards, PsmakR

  • J Developer

    Hi ! Am new in Java Development and using J Dev 10.1.2.0.0 Version , I am developing web pages based on Structs pages , in this i have created three JSP pages and those r working fine , My problem is that i want develop a JSP in whcih i can show head

  • Service tax error

    hi friends,                  my client have 4 plants(v1,v2,v3,v4), they define different g/l a/cs for service tax,edcu.cess and higer edcu.cess. in ob40 they assigned only one  plant g/l a/cs(v4) for trasation types ESA,ESE and VSE. but while posting