How to get and parse xml input parameter?

Hi,
If one transaction input parameter is xml string, like as below.
<a>
<b>
    <c>1</c>
    <d>2</d>
</b>
<b>
    <c>3</c>
    <d>4</d>
</b>   
</a>
If I would like to get each element (maybe by repeater action), how to do that?
Thanks!

Hi,
You must convert the string into xml with necessary action block. (XML Functions --> String to XML Parser)
Then you must put a repeater after converter action and you must set Xpath expression for repeater (configuration) like below:
String_To_XML_Parser_0.Output{/ARef/BRef}
after repeater you can use values like below:
Repeater.Output{/BRef/c}
Repeater.Output{/BRef/d}
Regards.

Similar Messages

  • How to get and parse  hh:mm:ss:mm    time  format

    dear all
    i have got a problem.i am getting time grom user in a JTextField which i want him to enter in hh:mm:ss:mm format.now how can i check for this format?
    is there any dateformateer or parser that can help me?or i will have to use string tokenizer an code it manually?
    pls advice
    regards
    sheetal

    Patterns for java.text.SimpleDateFormat ...
    "yyyy.MM.dd G 'at' HH:mm:ss z"
    2001.07.04 AD at 12:08:56 PDT
    "EEE, MMM d, ''yy"
    Wed, Jul 4, '01
    "h:mm a"
    12:08 PM
    "hh 'o''clock' a, zzzz"
    12 o'clock PM, Pacific Daylight Time
    "K:mm a, z"
    0:08 PM, PDT
    "yyyyy.MMMMM.dd GGG hh:mm aaa"
    02001.July.04 AD 12:08 PM
    "EEE, d MMM yyyy HH:mm:ss Z"
    Wed, 4 Jul 2001 12:08:56 -0700
    "yyMMddHHmmssZ"
    010704120856-0700

  • Error in retrieving and parsing XML File

    Hi Folks
    I am Working on People centric user interface, While i am custimizing a application in Business application Builder i am getting this error
    " Error in retrieving and parsing XML File "
    can any body look on this and give me the solution
    it will be rewarded
    Regards
    M.S.Kumar

    Hello,
    As mentionned by SAP_TECH, avoid to use the BAB.
    Go to CRMC_BLUEPRINT_C and use the different option in the menu to customize the field group, toolbar group, events, ...
    Use the PCUI cookbook to find your way.
    Regards,
    Fred

  • How to get organization id as input in oracle alerts

    Hi,
    How to get organization id as input in oracle alerts
    Following is the my sql script
    SELECT
    poh.segment1
    ,pv.vendor_name
    ,poh.end_date
    ,flv.description
    ,flv.tag
    INTO
    &po_num
    ,&vendor_name
    ,&end_date
    ,&to_mail
    ,&cc_mail
    FROM
    po_headers_all poh
    ,po_vendors pv
    ,hr_locations hrl
    ,org_organization_definitions ood
    ,fnd_lookup_values_vl flv
    WHERE
    poh.vendor_id = pv.vendor_id
    and poh.type_lookup_code in ('CONTRACT','BLANKET')
    and poh.attribute2 = 'Contracts, Services'
    and hrl.ship_to_location_id = poh.ship_to_location_id
    and hrl.inventory_organization_id = ood.organization_id
    and ood.organization_code = flv.lookup_code
    and flv.lookup_type='NGHA_EAM_ORG_EMAIL'
    and flv.lookup_code = 'RCE'
    and to_char(poh.end_date, 'dd-mm-yyyy') = to_char(sysdate+180, 'dd-mm-yyyy')
    Here i did organization code as hard code , but i want here organization code dynamically.
    Hanimi.

    Can you not use the function FND_PROFILE.VALUE ('ORG_ID') or something similar ?
    See ML Doc 289563.1 (Unable To Use More Than 16 Functions Calls In Alert Definition) as an example.
    HTH
    Srini

  • How to Read and Write .XML datas   (HELP Plz...)

    hai everybody
    how to read and write xml datas... plz give clean and simple example..
    bcoz me want to produce such type of module...
    if any one help me .. thats the only way me laid in software ladder
    plz....
    thank u in advance

    thank u for giving idiot..
    but before posting i search in google also..
    but i cant get what me expect..
    thus i posted...
    then who is ................?
    sorry javacoder01
    // plz help me
    Message was edited by:
    drvijayy2k2

  • How can I pass Recordsets as input parameter to a Function ?

    Hi Gurus,
    I want to create a function that receive recordsets as input parameter also returns recordsets as output.
    I have a requirement to do stock taking for all order items of one Order number in one single query execution (to avoid row by row basis).
    From the post in the forum I know that a function can return recordsets / query result using REF CURSOR or pipelined table function.
    My question is : how to pass the recordsets as input parameter to that function ?
    (because I could have 75 rows item in one order number)
    Below is the DDL and the query :
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    insert into stocks values('P001', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P001', 'WH002', '01-dec-2006', 50)
    insert into stocks values('P001', 'WH002', '01-jan-2007', 50 )
    insert into stocks values('P001', 'WH001', '01-Mar-2007', 150)
    insert into stocks values('P002', 'WH003', '01-dec-2006', 25)
    insert into stocks values('P002', 'WH003', '15-Jan-2007', 50)
    insert into stocks values('P002', 'WH003', '01-Mar-2007', 75)
    insert into stocks values('P003', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P003', 'WH002', '15-Jan-2007', 40)
    insert into stocks values('P003', 'WH003', '01-Mar-2007', 50)
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    The query for stock taking :
    select product,warehouse,expireddate, least(qty_available-(sm - qty_ord),qty_available) qty
    from ( select product,warehouse,expireddate,qty_available,qty_ord, sum(qty_available) over(partition by product order by s.product,expireddate,decode(warehouse,priority_wh,0,1),warehouse ) sm
    from stocks s,order_detail o
    where s.product = o.product_ord order by s.product,expireddate,decode(warehouse,priority_wh,0,1) )
    where (sm - qty_ord) < qty_available

    Hi,
    This my requirement :
    I have (simplified)Order_Detail as below :
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    Then I want to do stock taking from my STOCK table (described on my first post on this thread)
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    The rule is : The stok taking is on First In First Out basis, on expireddate.
    And I want to do it in single query.
    I want to make this a Function / Stored Procedure so that other transaction can also make use of this query.
    That is why I need to pass the 3 rows oy mr Order_Detail above, do the query, and return the result.
    Then INSERT the result into ORDER_DETAIL_PER_EXPIRED_DATE table.
    I hope this clear my requirement, is this possible ?
    Thank you,
    xtanto

  • XML INPUT parameter in a MII BLS Transaction

    Hi.
    Please anybody has some good XSD file that can be used as a data type for a xml input parameter of a BLS Transaction ? could share it with us ? I will use it as a sample to create my own XSD file.
    Until now, all XSD files that I created worked but I could not import the webservice on ECC.

    Hi Stephen Kuykendall, thank you.
    I still have to following error message when try to execute the webservice in wsnavigator:
    [location : http://srvsdmii01.malwee.com.br:50000/XMII/WSDLGen/Default/teste2] ERROR : Definition of /definitions/types/s:schema/s:complexType[1]/s:sequence/s:element/s:complexType/s:sequence/s:element is not correct. Missing top level component (uri: 'http://schemas.xmlsoap.org/wsdl/'; name: 'GET_DETAILS').
    I created a XSD file and put your xsd contente there:
    so, I created a transaction propert of type "Input" with Data Type "xml" and assined your XSD with the element "GET_DETAILS":
    The WSDL url (/XMII/WSDLGen/Default/teste2) generated the wsdl with the following content:
    <?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.sap.com/xMII" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
        <!-- Types -->
        <types>
            <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII"><s:import schemaLocation="http://srvsdmii01.malwee.com.br:50000/XMII/WSDLGen/db/Default/WEB/Entrada.xsd"/>
                <s:complexType name="InputParams">
                    <s:sequence id="InputSequence">
                    <s:element maxOccurs="1" minOccurs="0" name="P_Entrada"><s:complexType><s:sequence><s:element ref="GET_DETAILS"/></s:sequence></s:complexType></s:element></s:sequence>
                </s:complexType>
                <s:element name="XacuteRequest">
                    <s:complexType>
                        <s:sequence>
                            <s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string"/>
                            <s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string"/>
                            <s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams"/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
                <s:complexType name="Rowset">
                    <s:sequence>
                        <s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row"/>
                    </s:sequence>
                    <s:attribute name="Message" type="s:string"/>
                </s:complexType>
                <s:complexType name="Row">
                    <s:sequence id="RowSequence">
                    <s:element maxOccurs="1" minOccurs="1" name="P_Saida" type="s:string"/></s:sequence>
                </s:complexType>
                <s:element name="XacuteResponse">
                    <s:complexType>
                        <s:sequence>
                            <s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset"/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
            </s:schema>
        </types>
        <!-- Messages -->
        <message name="XacuteSoapIn">
            <part element="s0:XacuteRequest" name="parameters"/>
        </message>
        <message name="XacuteSoapOut">
            <part element="s0:XacuteResponse" name="parameters"/>
        </message>
        <!-- Ports -->
        <portType name="XacuteWSSoap">
            <operation name="Xacute">
                <input message="s0:XacuteSoapIn"/>
                <output message="s0:XacuteSoapOut"/>
            </operation>
        </portType>
        <!-- Bindings -->
        <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
            <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
            <operation name="Xacute">
                <soap:operation soapAction="http://www.sap.com/xMII" style="document"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>
        </binding>
        <!-- Service mapping -->
        <service name="XacuteWS">
            <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
                <soap:address location="http://srvsdmii01.malwee.com.br:50000/XMII/SOAPRunner/Default/teste2"/>
            </port>
        </service>
    </definitions>

  • How to get and install the new MSI Bluetooth Software Package 1.4.3.3.

    How to get and install the new MSI Bluetooth Software Package 1.4.3.3.
    This little FAQ will only cover the new version of MSI Bluetooth Software Package.
    First thing too do is unistall any older version of the MSI Bluetooth Software.
    Do this through the Add/Remove program applet in your control panel.
    There seams too be only through Live update you could get the new version of MSI Bluetooth Software Package.
    If you can't see any enter for MSI Bluetooth Software in the Live driver section of Live update then you have too enter the following too your registry.
    Create following code in Notepad and save it as MSILD.reg, then run the file.
    ;-->Code start
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\MSI\Drivers\MSI Bluetooth Software]
    "DrvSetup"="1"
    "Version"="1.4.2.10"
    ;-->Code end
    Rerun the Live update and hopefully you will now see a entry for MSI Bluetooth Software in Live driver section.
    Install the new version of MSI Bluetooth Software and reboot your computer. Even if the setup program doesnt told you too doit.
    After rebooting the computer you will see the Bluetooth icon in the taskbar. If it's Red then try too start the Bluetooth services by right click on the try icon and the only alternetiv there is.
    If the Bluetooth services is asking for a valid licens.dat then you should do the following.
    Surf to Jon's Bluetooth guide http://www.jonsguides.com./bluetooth/prepare.html and download the patcher from the link there.
    Unzip the the patcher and then run the BTWPatcher.exe program.
    Now the Bluetooth services will start and you will bee able too configure your own settings for the Bluetooth services.
    If nothing of this work you could try the complete Bluetooth solution at Jon's gudie and install the IBM version of the same program. I havent test this solution and will not do soo.

    I have the MS-6968 device and i want to use driver 1.4.x or 3.0.x. I found the driver 1.4.2.10 but i cannot find any WIDCOMMSecurity code.
    So, can anyone give me a link for BTWPatcher.exe???
    It cannot be found here (Jon's Bluetooth ) anymore.
    Thanks

  • How to write and read Xml file from database if possible?

    Hi all,
    I need to read the .Xml file when receives from Source systems and write the data into the table as well as write in the.xml file thru reading the data from table as per the client needs. I am stranger to this area. Since, please provide some examples how to approach the same.
    Thanks in advance !!
    Regards.
    Vissu.....

    The XML DB forum is better suited to your question.
    It also has a FAQ which details how to read and shred XML into tables as well as other common XML based questions...
    XML DB FAQ

  • How to get and display current year

    hi,
    how to get and display current year
    and need it to convert numeric format if it is orginally
    in character format.

    Hi,
    chk this FM.
    CALL FUNCTION 'GET_CURRENT_YEAR'
      EXPORTING
        BUKRS         = '1000'     " Company Code
        DATE          = SY-DATUM   " Date to find fiscal year for
      IMPORTING
        CURRM         = w_currm    " Current Fiscal Month
        CURRY         = w_curry    " Current Fiscal Year
        PREVM         = w_prevm    " Previous Fiscal Month
        PREVY         = w_prevy.   " Previous Fiscal Year
    rgds
    anver
    if hlped pls mark points

  • How to  get and download adobe illustrtor for iMac os x 10.7

    how to  get and download adobe illustrtor for iMac os x 10.7    

    www.adobe.com would be a good place to start. You can also visit Apple's Online Store to see if you can order from there. Google search for other vendors.

  • How to get and read a file from META-INF directory

    how to get and read a file from META-INF directory in a EJB project

    Use this.getClass().getResourceAsStream("/META-INF/filename");This should work. Probably, you would need to set the Manifest Class-Path attribute.

  • How to get and maintain Http persistent connection to get pushed data from

    At MangoSpring ,www.mangospring.com we are working on application which uses IMPS protocol where we always required to receive data pushed by server.
    To achive this we'll have to maintain one persistent Http connection on client side, so that we can be notified whenever some data is pushed by server.
    Reply With Quote

    our problem is :: " How to get and maintain Http persistent connection to get pushed data from Server "

  • How get and edit xml code of BI Publisher Report

    Hi to all,
    I need to do some costumization to one BI Publisher report. Investigating I found a solution to do my costumization. However this requieres edit the xml code. Can you please let me know how can I get and edit this code?
    Thanks in advance
    regards
    Daniel

    obiee / ebs .... ?
    Investigating I found a solution to do my costumization. However this requieres edit the xml code.
    no need edit seeded code (it's for SR)
    your steps:
    - get seeded code
    - edit
    - create custom report
    Can you please let me know how can I get and edit this code?
    for ebs you can look xml publisher responsibility, find by code

  • How to read and parse a remote XML file with Java

    Hi.
    Using J2SE v1.4.2, I'd like to read and parse a remote file:
    http://foo.com/file.xml
    Is it possible with Java? I'd be extremely grateful if someone could provide me any webpage showing a very simple code.
    Thank you very much.

    How about the following?
         import java.io.InputStream;
         import java.net.URL;
         import javax.xml.parsers.DocumentBuilder;
         import javax.xml.parsers.DocumentBuilderFactory;
         import org.w3c.dom.Document;
         public static void main(String[] args) throws Exception {
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              DocumentBuilder db = dbf.newDocumentBuilder();
              URL url = new URL("http://foo.com/file.xml");
              InputStream inputStream = url.openStream();
              Document document = db.parse(inputStream);
              inputStream.close();
         }-Blaise

Maybe you are looking for

  • Itunes will not recognise my ipad2

    only a few hours old, had an older version of itunes and the ipad showed up in that, updated itunes in order to update the ipad and now it just wont connect to itunes, absolutely typical if u ask me, i was expecting some sort of a problem with apple

  • Err in PO creation-Sales document item is not defined for this transaction

    Dear Consultants the errror  occurs when we process  Individual Purchase Order scenario. Err in PO creation-Sales document item is not defined for this transaction   Thanks&Regards, SanthaRam

  • Activation server error on ADE 3.0

    Hi! I unistalled ADE 4.0 and installed 3.0 because 4.0 wouldn't let me open .acsm files or transfer them to other devices. Now, on ADE 3.0, when i try to open an .acsm file, it comes up with a computer autorisaton window which reads "activation serve

  • Using the iPod Function of iPhone 3G while docked in the Universal Dock

    I am trying to use the iPhone to play my music while docked in my universal dock with the correct snappins that I just received. I here absolutely no music from the speaker while docked. I have tested it while using the alarm and receiving a call fro

  • "emails to all names in a group"

    When I try to email all the names in a group I've created in my contacts, it will only take the first 3 names in the group.  Is there something else I need to do.  I have 50 names in this group I would like to email all at once.