Function in finding the count of ocurrances of an XML tag in j developer

Hi All,
I need to find the count of an xml tag that appears mutliple times in an xml payload.
I did not find any function in bpel doing this.I am using j developer version 11.1.1.5.0 and SOA Composite editor version  11.1.1.5.0.01.74
Is there any function in Bpel that gives as the count of occurence of an element in a payload?
Kindy suggest me on this.

The below function is used inside XSLT to count the nodeset
count(inputNodeSet as node-set)
Returns the number of nodes in inputNodeSet.
Thanks,
Vijay

Similar Messages

  • Write two functions to find the the number of elements in a linked list?

    I am trying to Write two functions to find the the number of elements in a linked list. One method using recursion and One method using a loop...
    //The linked List class is Represented here.
    public class lp {
    public int first;
    public lp rest;
    public lp(int first1, lp rest1)
    first = first1;
    rest = rest1;
    The program i wrote so far is
    import java.util.*;
    import linklist.lp;
    public class listCount{
    //loop function
    public static void show_list(lp list)
    int counter = 0;
    while(list != null)
    list = list.rest;
    counter++;
    System.out.println ("length computed with a loop:" + counter);
    //recursive function
    public static int recursive_count(lp list)
    if (list.first == null)
    return 0;
    else
    return recursive_count(list.rest) + 1;
    //main method
    public static void main (String args[])
    lp list1 = new lp(1, new lp(2, new lp(3, null)));
    show_list(list1);
    System.out.println("length computed with a recursion:" +
    recursive_count(list1));
    at the if (list.first == null) line i get the error " incomparable types:
    int and <nulltype>" I know this is a beginners error but please
    help...What should I do?

    byte, char, short, int, long, float, double, and boolean are primitives, not objects. They have no members, you cannot call methods on them, and they cannot be set to or compared with null.

  • How to find the count of tables going for fts(full table scan in oracle 10g

    HI
    how to find the count of tables going for fts(full table scan) in oracle 10g
    regards

    Hi,
    Why do you want to 'find' those tables?
    Do you want to 'avoid FTS' on those tables?
    You provide little information here. (Perhaps you just migrated from 9i and having problems with certain queries now?)
    FTS is sometimes the fastest way to retrieve data, and sometimes an index scan is.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:9422487749968
    There's no 'FTS view' available, if you want to know what happens on your DB you need, like Anand already said, to trace sessions that 'worry you'.

  • Function to find the greatest of two numbers

    Hi All
    In the rtf template, is there any function to find the greatest between two numbers?
    Please help
    Thanks in Advance

    Just like SQL, use the GREATEST function. List of comparable SQL functions is shown on or about page 9-30 of user guide (depends on which version you have). Search on GREATEST and you'll find it.

  • How to find the count of attachments done before submit in Attachment Link?

    How to find the count of attachments done before submit in Attachment Link?
    Does anybody know how to find the count of attachments done in Attachment Link item type before Submit.
    My requiremet is to display the count of attachments done by user used in Standard Page before he submits the page.
    Any help would be appreciated.
    Thanks.
    CO.java
    OAMessageAttachmentLinkBean oalink = (OAMessageAttachmentLinkBean)webBean.findChildRecursive("Attachments");
    oalink. count ?

    I have the same issues! any body can help this issues?

  • Best way to find the count of rows affected by a query

    Hi All,
    Is there a way to find the row count without actually executing the SQL statement? The count need not be accurate but it should be within acceptable limits. I know we can use 'explain plan' for this. But the value in plan_table.cardinality is way out of the actual expected count.
    We would appreciate any pointers and/or suggestions.
    Thanks
    Edited by: user779842 on May 4, 2011 2:21 AM

    maybe you can try this
    How to get estimated number of rows of query without running actual query :
    CREATE OR REPLACE FUNCTION get_rows_number (sql_select VARCHAR2, sql_id VARCHAR2) RETURN NUMBER AS
    rows_number NUMBER;
    BEGIN
    EXECUTE IMMEDIATE
    ‘EXPLAIN PLAN SET STATEMENT_ID = ‘||CHR(39) || sql_id || CHR(39)||’ FOR ‘ || sql_select;
    SELECT t.cardinality
    INTO rows_number
    FROM plan_table T
    WHERE statement_id = sql_id AND ID = 0;
    RETURN rows_number;
    END;hope it helps!

  • How to get the search function to find the correct files

    i have long wondered if it was me or the system, but i am very clear finally that the search function *****.
    1) i try to find a word in a document.
    2) the system shows me several possibilities. chapters 16, 18, 21, etc...
    3) i then bring up each one individually and search each one. some of them DON'T EVEN HAVE THE WORD OR PHRASE IN THEM THAT I AM SEARCHING FOR. what's THAT all about?
    4) so i look at my real life book or search on the web. voila! there it is. chapter 14.
    5) i try again. both finder search and spotlight. NEITHER SHOW ME THE CORRECT DOCUMENT. neither shows me chapter 14. they still show 16, 18, 21, etc.
    this has always been VERY mysterious.
    it has happened hundreds of times over the years.
    i am VERY clear now it is NOT me and it IS the system.
    what use is it to get a list of documents that do not have the correct criteria and NOT get the document that has the correct criteria?
    is leopard as sucky?

    thanks for your response.
    perhaps you don't use it as much as i do?
    i have been cursing this search feature for years.
    i often try to find exact words in a particular book
    that i have on my computer as .doc files.
    and it often does not find what i want and it often
    finds what i do not want. so i am very confused.
    i went to system preferences. opened spotlight.
    there is nothing listed under 'don't search here'...
    and i have only a few things listed under 'search here.
    i do not understand how that link could help my
    problem.
    when i search for the word inside a document or
    inside a pdf, the programs find the word. but
    finder/spotlight does not find it.
    i still need more help.
    and thanks for your response.

  • Function to find the Last Date of Month One Year Ago - RETURNS ERROR

    I've written sql code which takes a date and finds the Last Day of the Month one year ago. For example,  it takes the date '2015-04-17' and returns the date '2014-04-30'. The code works fine in a query. Now I'm trying to turn this into a function. However,
    when I try to create the function I get the error:
    Operand type clash: date is incompatible with int
    Why is this error being returned?
    Here is my function:
    CREATE FUNCTION dbo.zEOM_LY_D(@Input Date)
           RETURNS date
    AS
    BEGIN;
      DECLARE @Result date;
      SET @Result =  convert(DATE, DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,dateadd(m, -11, @Input)+1),0)),101)
        RETURN @Result;
    END;
    Thanks for any help you can give.
                     

    Stan,
    Thanks very much- that does the trick. I should have said I am using SQL 2008 so EOMONTH is not available to me. I still don't get why I got an error though, since I was treating a date like a date and not like an int.
    Thanks, John
    I think i found the issue but i do not know why it is causing the issue. i think may be the way dates are treated/stored internally..i think dates are stored as no of days after 0001/01/01 but cannot see how this cwould effect..may be somebody else can through
    some light..... 
    if you make it as datetime it will work,
    if you leave it as date - eliminate adding 1...  you should prefer to use dateadd to add/substract dates.
    try this to understand..
    --removed the +1 in the code
    declare @input date
    set @input ='20150503'
    select
    convert(DATE, DATEADD(s,-1,DATEADD(mm,DATEDIFF(m,0,dateadd(m, -11, @Input)),0)),101)
    go
    --made the datatype as datetime
    declare @input datetime
    set @input ='20150503'
    select
    convert(DATE, DATEADD(s,-1,DATEADD(mm,DATEDIFF(m,0,dateadd(m, -11, @Input)+1),0)),101)
    Hope it Helps!!

  • Function that finds the absolute path of a file

    Hi,
    I'm creating an application using the SDL framework.
    The following code gives me the absolute path for the file "caisse.jpg", which is located in my application bundle. Then, I can use the value of "cstrURL" to load the image with IMG_Load(cstrURL);
    #import <CoreFoundation/CoreFoundation.h>
    int main(int argc, char *argv[])
    CFURLRef url = CFBundleCopyResourceURL( CFBundleGetMainBundle(),
    CFSTR("caisse"),
    CFSTR("jpg"), //extension du fichier
    NULL );
    const char* cstrURL = CFStringGetCStringPtr(
    CFURLCopyFileSystemPath(url,kCFURLPOSIXPathStyle),
    CFStringGetSystemEncoding()
    printf("URL: %s", cstrURL);
    return EXIT_SUCCESS;
    But I have many files to load for my application. I tried to create a function that would take as parameter informations about the image, and then automatically find the absolute path of this image.
    ( void imgPath(char name[], char ext[], char destination[] ---> name = "image", ext = "jpg", destination is a variable in which the function puts the absolute path of the file)
    How can I do that? What bugs me is the use of the CFSTR macro in the code I have...
    Thank you very much
    FRANKY

    The CFSTR macro can only use a constant string as parameter, not a variable one.
    You can use instead CFStringCreateWithCString if the parameter is a C String (char *).
    Additionaly, I think the input parameters of your imgPath function must be of char* type, not char. And the output parameter char** (but it would be easier to know with the function source code).

  • Recursive function to find the parents of a tree node

    Hi,
    I need help to write a recursive function to get the parents of a tree node upto the root.The major problem is , each node can have more than one parent.I have two methods ; one to get the immediate parents(getParents() will return me a vector) and the other to get the parents upto the root(will also return me a vector).
    Thanks in advance,
    nanduvs

    let me risk a dumb response ..
    if there are multiple parents
    why not just follow the first parent
    back to the root
    if everything starts at one root

  • How to find the count of Daily transactions?

    Hi all,
    ThankQ for your help and suggestions for my previous questions. I have a new query now.
    I need to find out the number/count of transactions that happen each day. Please let me know if any database view or any things needs to be enabled.
    Thanks in advance.
    Regards,
    Sagar Maram

    v$log_history will still have entries but if there is no log switch happend between these hours then this select will not provide any result see below:
    SQL> SELECT 'DATABASE', 'Total transactions in last 24 Hrs',
    2 TO_CHAR (MAX (next_change#) - MIN (first_change#), '9,999,999,999')
    3 FROM v$log_history
    4 WHERE TO_DATE (first_time, 'DD/MM/RR HH24:MI:SS') >
    5 TRUNC (SYSDATE, 'HH24')
    6 - 1;
    'DATABAS 'TOTALTRANSACTIONSINLAST24HRS' TO_CHAR(MAX(NE
    DATABASE Total transactions in last 24 Hrs
    Result from v$log_history, the datbase is in noacrhivelog mode:
    select * from (SELECT to_char(FIRST_CHANGE#),FIRST_TIME,to_char(NEXT_CHANGE#) FROM v$log_history order by 2 desc)where rownum <10
    TO_CHAR(FIRST_CHANGE#) FIRST_TIM TO_CHAR(NEXT_CHANGE#)
    3421207734803 03-SEP-09 3421208397050
    3421207130708 28-AUG-09 3421207734803
    3421206412579 27-AUG-09 3421207130708
    3421206327917 27-AUG-09 3421206412579
    3421206320613 27-AUG-09 3421206327917
    3421206303828 26-AUG-09 3421206320613
    3421206147995 26-AUG-09 3421206303828
    3421206126217 26-AUG-09 3421206147995
    3421206101088 26-AUG-09 3421206126217
    TRUNC (SYSDATE, 'HH24') - 1--This will provide exact 24-hours before time but it may happen that first change is at 23:30 hours before, so transaction within that half hour will not be reported by above query. What is your take on this?
    Regards.

  • Find the count of the character in a string

    Hi,
    i have a scenario like i have one string in that character is repeated for more than one time.
    i want to know how many times that character is appeared in that string by using sql query.
    example: "Hello welcome to oracle world" In this i want to know how many time "e" is appeared..
    i think we can achieve by using instr and substr but i am not clear can any body please help me by using sql query to solve this issue

    regexp_count() function.
    Better answers available on the SQL-PLSQL forum. PL/SQL
    Edited by: SK1 on May 24, 2012 11:30 AM

  • How to find the count of Account/Contact Team using 2.0 webservice.

    Hi All,
    Could someone please tell me how to count all records of child object i.e. count of all objects part of Account Team or Count Team
    There was one requirement to count total number of records in Account/Contact Team using 2.0 web service.
    Is it possible to find using one web service call.
    Please suggest alternate method if any.
    Thanks in advance.
    Vijay

    The answer to your question lays somewhere here: [http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html|http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html] http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html

  • SQL to find the counts based on date

    Hi,
    I have a table called APP_TXN and it has application_id, application_status, created_dt columns. My job is to find out number of applications created in last 0 - 4 days, 5 - 9 days and 10 + days, group by application_status. Please help.
    Thanks & Regards,
    Christopher.

    Something like this
    select application_status,
         sum(case when created_date between sysdate-4 and sysdate then 1 else 0 end) CNT0TO4DAYS,
         sum(case when created_date between sysdate-9 and sysdate-5 then 1 else 0 end) CNT5TO9DAYS,
         sum(case when created_date <= sysdate-10 then 1 else 0 end) CNT10PLUSDAYS
       from app_txn
      group by application_status

  • Java Function which finds the server details

    Hi folks,
      The requirement is
    "we need to use JavaScript variable to capture the server name on which my report is running. So that we can construct dynamic URL"
    Can you please help?
    Thanks in advance
    Varun

    http://www.google.com/search?q=javascript+hostname

Maybe you are looking for

  • IPhone 4 GOES DARK RANDOMLY FOR NO PARTICULAR REASON PLEASE HELP

    I'm gonna try this. Because I'm super frustrated. Something scary is happening to my device, I got an unlocked iPhone 4 from the Beverly Center in Los Angeles 3 weeks ago. I'm now on a long business trip in Moscow Russia and all of a sudden my screen

  • Can't get movie to play on itunes!

    I just purchased and downloaded the movie Money Ball on itunes. After it finished downloading it showed up under the movies tab, but when I click it it brings me to the menu for Money Ball (Where it says play movie, scenes extras, etc...) and will no

  • Lion license from new mac book air

    I have ordered a new Mac Book Air, and i guess it will come with Lion. I allso have a Mac Mini 2010, will i be able to use the licens that comes with my new Mac Book Air to install Lion on my Mac Mini? Or do i have to download Lion from appstore to M

  • Return nothing from DB

    I am a beginner to JDBC and my english is not good. i hope anyone here understand where my problem is. i am trying to show some data in the database using very simple servlet. i have checked that the string returned have size (rs.getString(1).length(

  • PS BE 8.00c Rev 2 Software Update Option Not Available

    Despite being logged in with Full Admin rights, PS BE 8.00c has the "Software Update" option (Tools > Options > Software Update) grayed out. Additionally, the Help > Check for Updates... method results in nothing happening. I am unable to apply the R