XPath expression for getting nodes based on date

Hello,
using javax.xml.xpath.XPath (Java 5) I want to get only nodes with dates (element pubDate) greater then some provided date. What is the expression for getting, say only first two <item> nodes? Is it at all possible?
Example XML document:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
     <channel>
          <title>Channel title</title>
          <link>http://www.foo.bar</link>
          <description>Channel description</description>
          <item>
               <title>title 1</title>
               <link>http://foo.bar.org/1</link>
               <author>author 1</author>
               <pubDate>Thu, 15 Jun 2006 13:14:00 GMT</pubDate>
          </item>
          <item>
               <title>title 2</title>
               <link>http://foo.bar.org/2</link>
               <author>author 2</author>
               <pubDate>Thu, 15 Jun 2006 13:11:00 GMT</pubDate>
          </item>
          <item>
               <title>title 3</title>
               <link>http://foo.bar.org/3</link>
               <author>author 3</author>
               <pubDate>Thu, 14 Jun 2006 13:03:00 GMT</pubDate>
          </item>
          <item>
               <title>title 4</title>
               <link>http://foo.bar.org/4</link>
               <author>author 4</author>
               <pubDate>Thu, 13 Jun 2006 12:59:00 GMT</pubDate>
          </item>
     </channel>
</rss>Thanks for any hints!

I would simply assign value to a variable inside package and use the value in the expression. You can also add variable to configuration if you want to pass a value from outside. You can also add another variable to determine whether you need yesterday or
specific date and set expression accordingly so that you expression will look like
(DT_WSTR,30)([User::DateCategory] == "Specific Date"? @[User::Date]:(DT_WSTR, 4) DATEPART( "yyyy", DATEADD( "dd" , -1, GETDATE() ) ) + Right("0"+(DT_WSTR, 2)DATEPART( "mm", DATEADD( "dd" , -1, GETDATE() ) ),2) + Right("0"+(DT_WSTR, 2)DATEPART( "dd", DATEADD( "dd" , -1, GETDATE() ) ) ,2)) +"_*.TXT"
DateCategory variable should be of type string
and Date should of type date
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • XPath expression for each node name

    <DATABASE>
       <TITLE>
          <LANGUAGES>SGML<LANGUAGES>
       <TITLE>
    </DATABASE>Is there a direct way of retrieving xpath expression for each node name other than iterating through each node and identifying the parent node.
    Ex:
    DATABASE
    DATABASE/TITLE
    DATABASE/TITLE/LANGUAGES

    If you set an element ID using the DOM parser you can then look it up using the ID.
    private void setElementIDNode(String tag, String IDAttribute){
            NodeList nodes = doc.getElementsByTagNameNS(docNS, tag);
            for (int i = 0; i < nodes.getLength(); i++){
                Element node = (Element)nodes.item(i);
                node.setIdAttribute(IDAttribute, true);
    Element e  = doc.getElementById(elementID);But at some point you still have to iterate through the document. I believe XML Pull Parsers are a little different but I don't have experience with them.

  • Xpath expression for a custom SearchBoxEx WebPart to a DataFormWebPart

    Hi all,
    I have a custom search webpart that has asp controls that are used in my dataview (DataFormWebPart) for retreiving data. This data view has the xslt variable "Rows" with the following xpath expression: 
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[
    (contains(translate(@Title,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'), translate($FilterName,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')) or $FilterName = '')]"/>
    *<ParameterBinding Name="FilterName" Location="Control(txtName)" DefaultValue=""/>
    This webpart searchs for people by their name. For example:
    search for:
    jose
    results:
    jose luis escudero
    jorge jose torres
    Ok, it works fine there, but what if I want to search for: jose escudero. There won't be any results because the search xpath expressions has a contains function for what you write in the textbox control.
    So I think it should be splited by " " and searchs for the each word in the @Title column of the data source.
    I don't master xpath expressions so I don't know how to code a correct xpath expression for that, any idea? I would greatly appreciate any help. Thanks.

    Hi  betozg31,
    According to your description, the point is that your Xpath code put the “jose escudero” search keyword as a unitary string. So  your search  would not return any results. I think
    if you want to search result using two or more keywords ,you need to deal with the keywords firstly. Separating from the “jose escudero” search keyword , getting “jose” search keyword and “escudero” search keyword. Here is a simple code you
    can have a look:
    <xsl:if test="$FilterName =' ' ">
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[ $FilterName=' ']"/>
    </xsl:if>
    <xsl:variable name="FormatFN" select="lower-case(normalize-space($FilterName))"/>
    <xsl:variable name="FormatT" select="lower-case(@Title)" />
    <xsl:if test="matches($FormatFN,' ')">
    <xsl:variable name="FilterNameBefore" select="substring-before($FormatFN,' ')"/>
    <xsl:variable name="FilterNameAfter" select="substring-after($FormatFN,' ')"/>
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[ contains(contains($FormatT, $FilterNameBefore),$FilterNameAfter )]"/>
    </xsl:if>
    <xsl:if test="not(matches($FormatFN,' '))">
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[ contains($FormatT,$FormatFN)]"/>
    </xsl:if>
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Xpath expression to get depth child element

    Hi
    I wanted to find the depth element (sub isuer) in the hierarchy of 93699V issuer through xpath expression .
    <?xml version="1.0" encoding="UTF-8"?>
    <issuer id="93699V">/>
    <subissuer id="06U99A">
    <subissuer id="52729N">
    <subissuer id="37932J">
    <subissuer id="322995"/>
    <subissuer id="35906P">
    <subissuer id="001575"/> //child of issuer 93699V. since no further child
    <subscriber id="771758"/> //child of issuer 93699V.since no further child
    </subissuer>//end of 37932J
    </subissuer>//end of 52729N
    </subissuer> //end of 06U99A
    </subissuer>
    <subissuer id="06099K">
    <subissuer id="06N99R"/>//child of issuer 93699V.since no further child
    </subissuer>
    <subissuer id="715680"/> ////child of issuer 93699V.since no further child
    </issuer>
    what is the xpath expression to find the depth child of 93699V.i .e o/p is as follows.Since now we have four depth element.
    001575
    771758
    06N99R
    715680
    Please let me know the xpath expression to get depth sub issuer

    Not sure if this helps, there is a section about creating loops in the Workbench ES2 Help at http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/000187.html#1032146. Another way would be to use a custom component as you suggest but you can do it in Workbench as well.
    Hope that helps..
    ...Gil

  • Customised xpath expression for does not contain

    Hi folks,
    Is there a customised symbol for xpath expression for "does not contain" . cant seem to find it in the xpath operators.
    Thanks
    Pratichi

    Hi,
    Refer the below link:
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/15981541f7648ee10000000a1553f7/content.htm
    -Supriya.

  • What is the table name for getting Last Receipt  & issue date of material?

    Hi Friends,
    What is the table name for getting Last Receipt  & issue date of material?
    *Case 1:*
    Here, I am running report in May 2008. But, if there is no goods receipt for the respective material since last 13th March 2007.
    Then in this case Last goods receipt date should be 13th March 2007.
    Please guide me.
    Regards
    Siva

    I checked MSEG table. But, I didn't find any field for date.
    Can you tell me field name.
    Regards
    Siva

  • XPATH expression to get Array node

    Hi
    I have a problem with an XPATH expression in BPEL. I want to get to a particular node in the following result set ..
    <return xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://com.quion.taken.services/ITakenService.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:Array" ns2:arrayType="ns3:com_quion_dto_taken_BouwnotaVoorraadDTO[2]">
    <item xsi:type="ns3:com_quion_dto_taken_BouwnotaVoorraadDTO">
    <begunstigde xsi:type="xsd:string">Sjoerd</begunstigde>
    <datum xsi:type="xsd:dateTime">2005-10-31T23:00:00.000Z</datum>
    <bedrag xsi:type="xsd:string">1000.0</bedrag>
    <geldLeningId xsi:type="xsd:string">4.0</geldLeningId>
    <rekeningnummer xsi:type="xsd:string">1234</rekeningnummer>
    <notaId xsi:type="xsd:string">1.0</notaId>
    </item>
    <item xsi:type="ns3:com_quion_dto_taken_BouwnotaVoorraadDTO">
    <begunstigde xsi:type="xsd:string">Laszlo</begunstigde>
    <datum xsi:type="xsd:dateTime">2005-10-31T23:00:00.000Z</datum>
    <bedrag xsi:type="xsd:string">1.0</bedrag>
    <geldLeningId xsi:type="xsd:string">4.0</geldLeningId>
    <rekeningnummer xsi:type="xsd:string">5678</rekeningnummer>
    <notaId xsi:type="xsd:string">2.0</notaId>
    </item>
    </return>
    The first thing is that my variable in BPEL does not show the ïtem"level", it shows for example 'return/notaId'.
    However I can get to the second node by keying in
    EXPRESSION 1:
    bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[1]/notaId')
    No I want to dynamically determine the particular node instance. I do this as follows [copied from the Array sample]:
    EXPRESSION 2:
    bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[', bpws:getVariableData('i'),']/notaId')
    BPEL throws the following error
    assignNotaId (faulted)
    [2005/11/09 09:49:36] Updated variable "invokeTaskManager_initiateTask_InputVariable" More...
    <invokeTaskManager_initiateTask_InputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
    <task xmlns="http://services.oracle.com/bpel/task">
    <taskId />
    <title />
    <creationDate />
    <creator />
    <modifyDate />
    <modifier />
    <assignee>jstein</assignee>
    <status />
    <expired />
    <expirationDate />
    <duration />
    <priority />
    <template />
    <customKey />
    <conclusion />
    <attachment />
    </task>
    </part>
    </invokeTaskManager_initiateTask_InputVariable>
    [2005/11/09 09:49:36] Error in evaluate <from> expression at line "172". The result is empty for the XPath expression : "bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[', bpws:getVariableData('i'),']/notaId')".
    [2005/11/09 09:49:36] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown. less
    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <part name="summary">
    <summary>empty variable/expression result. xpath variable/expression expression "bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[', bpws:getVariableData('i'),']/notaId')" is empty at line 172, when attempting reading/copying it. Please make sure the variable/expression result "bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[', bpws:getVariableData('i'),']/notaId')" is not empty.</summary>
    What is wrong with my expression 2?
    Thanks
    Jan Willem

    This Example works fine for arrays that are part of a WSDL message.
    But in 10.1.3.1 this does not work with a array that is part of an XSD declaration
    for Example XSD snippet
    <xsd:element name="itemList">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element maxOccurs="unbounded" minOccurs="1" ref="tns:Item" />
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
    using the following in assign statement
    <copy>
    <from expression="concat('/ns9:itemList/ns9:Item[',string(bpws:getVariableData('index')),']')"/>
    <to variable="idxXpath"/>
    </copy>
    <copy>
    <from expression="bpws:getVariableData('OutputItemList',bpws:getVariableData('idxXpath'))"/>
    <to variable="idx_item"/>
    </copy>
    gives a compiler error that is
    Error(176):
    [Error ORABPEL-10085]: invalid argument
    [Description]: in line 176 of "D:\OnlineShopping_1\bpel\OnlineShopping.bpel", the second argument "bpws:getVariableData("idxXpath")" for getVariableData is not a literal expression.
    [Potential fix]: Please correct the second argument, you might need to escape using single quote or " to make it literal.
    Can anyone site the reason for the same or a possible solution?
    Message was edited by:
    user607972

  • Boolean Expression for get date

    Hi Experts,
    I am working boolean expression in ssis package. I want download files from ftp and the file name is mic_20141101-mi.txt. 
    I want to take yesterday files for that i am using expression but i want to give dynamic date which i want give in variable the specific date to download those files from FTP.
    For this process i am using Boolean Expression if i give the specific date in variable then its download specific date files from ftp or else its download yesterday files.
    Pls help to me for this scenario.
    Raj.

    You need to have a variable inside SSIS through which you pass the date value
    Once passed you can have a script task inside your package to check for the pattern of date variable value inside your file to select correct files
    see this for similar logic where i'm looking for files from current day
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • XPath expression for fetching element names & attributes

    Hi out there!
    I�m trying to get a result set out of a xml schema, using XPath. The problem is, that any expression gets just a whole node set back, as it seems. The result I�d like to get would be the following. Imagine I got a schema like this:
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:r="http://recipes.org"
    targetNamespace="http://recipes.org"
    elementFormDefault="qualified">
    <element name="recipe">
    <complexType>
    <sequence>
    <element name="title" type="string"/>
    <element ref="r:ingredient" minOccurs="0" maxOccurs="unbounded"/>
    <element ref="r:preparation"/>
    <element name="comment" minOccurs="0" type="string"/>
    <element name="nutrition">
    <complexType>
    <attribute name="protein" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="carbohydrates" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="fat" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="calories" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="alcohol" type="r:nonNegativeDecimal" use="optional"/>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    Now, when I`m refering to the element <attribute name="protein" type="r:nonNegativeDecimal" use="required"/>, I would like to get all ancestors of it, which is not a big issue at all, but i`d just like to get their names and attributes, if they have some. So the result should be something like:
    <element name="recipe">
    <complexType>
    <sequence>
    <element name="nutrition">
    <complexType>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    Any ideas anybody?
    Thanks in advance, Jens

    Well, I would use the org.apache.xpath.XPathAPI class and parse the input XML into a DOM document., and then utilize the single xpath expression //attribute[@name=protein]/ancestor::* to recover all ancestors (in a directal-tree-traversal order) of any node called "attribute" and with attr "name=protein" .
    Could it be?

  • XPath expression for Native Schema (Opaque)

    Hi people,
    I have a BPEL process that dequeues a message using AQ Adapter, and we are using a Native (Opaque) schema for that, since we do not have the XSD available for this message. The XML Message generated is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <input_Dequeue_InputVariable>
    - <part>
    - <ns1:XXOD_IN_PERI_MWDProcessRequest xmlns:ns1="http://xmlns.oracle.com/XXOD_IN_PERI_MWD">
    <ns1:UE>3704</ns1:UE>
    <ns1:MATRICULA>00003953-0</ns1:MATRICULA>
    <ns1:CODIGOVERBA>PE</ns1:CODIGOVERBA>
    <ns1:TIPOVALOR>PCT</ns1:TIPOVALOR>
    <ns1:DATAINICIO>2009-09-15</ns1:DATAINICIO>
    <ns1:DATAFIM />
    <ns1:VALOR>30,0000000</ns1:VALOR>
    <ns1:ACAO>I</ns1:ACAO>
    </ns1:XXOD_IN_PERI_MWDProcessRequest>
    </part>
    </input_Dequeue_InputVariable>
    When i dequeue this, i use the following expression to get the value of tag ns1:ACAO in a copy operation:
    bpws:getVariableData('input_Dequeue_InputVariable','opaque', '//ns1:ACAO')
    However, this expression seems to be evaluating to NULL on the assign activity. I believe i am not using the correct Xpath expression to extract that... Do you know what is the correct XPath expression to extract this tag in this case?
    I am using SOA Suite 10.1.3.5.
    Best Regards
    Thiago
    Edited by: Thiago on Jan 28, 2010 5:08 PM

    Hi Eric,
    Unfortunately not. When the schema is Opaque, the variable in BPEL editor shows as "opaque", when i open it on the variable editor i see only the root element named "ns4:opaqueElement", and not the structure of the actual XML. I think it happens because this variable is not bound to any XSD...
    Thanks and Regards
    Thiago

  • Using substring in the XPATH expression for Receiver Determination

    Hello, I need a little help please.  In my receiver determination, I have a condition and I need to do a "not like" check.   Basically, if the first three positions of the source field does not start with a specific code, then I need to execute the condition.   The condition editor does not support a "not like" operand, so I went to the XPATH expression editor.  I tried to used the XPATH substring function to get the first three characters and then do a "not equal" operand, but it doesn't appear to work.  There are not any runtime errors, but the condition is not executing.  Any ideas on this?  Does the XPATH expression support the substring function?

    Hi Jesse,
    Can you please explain what is the meaning of http:// in the statement
    /p1:PRODUCT/MATNRhttp://not(substring(.,string-length(.) - 2) = '123')
    Please explein, I am having same issue. It is not working here.In My case it is
    /p1:ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR[http://not(starts-with(.,\"D\"))]
    also tried with
    /p1:ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR[http://not(starts-with(.,'D'))]
    Thanks in advance!

  • FM for get Material Inspection setup data

    Hi ALL
    I'm looking for a Function Module or Method that we can get Material Inspection setup data. ( QMAT data )
    Please let me know if you know that.
    Regards
    Rie

    reply myself...
    I can get an answer below thread
    Function Module for get Material Inspection setup data

  • FTP TASK( getting files based on Date )

    I am working on FTP TASK. I want to download files from FTP and the file names are like mico_20141101_MI.txt(datewise). Currently i am using the Expression to get date is  
    (DT_WSTR, 4) DATEPART( "yyyy", DATEADD( "dd" , -1, GETDATE() ) ) + Right("0"+(DT_WSTR, 2)DATEPART( "mm", DATEADD( "dd" , -1, GETDATE() ) ),2) + Right("0"+(DT_WSTR,
    2)DATEPART( "dd", DATEADD( "dd" , -1, GETDATE() ) ) ,2) +"_*.TXT"
    its working fine and i can download yesterday file from ftp.
    But If i want to download any particular date then how can i set variable?
    If i won't specific date and download yesterday file then above expression will be work.
    how can i use both script in Expression? pls can anyone help to me.
    Raj.

    I would simply assign value to a variable inside package and use the value in the expression. You can also add variable to configuration if you want to pass a value from outside. You can also add another variable to determine whether you need yesterday or
    specific date and set expression accordingly so that you expression will look like
    (DT_WSTR,30)([User::DateCategory] == "Specific Date"? @[User::Date]:(DT_WSTR, 4) DATEPART( "yyyy", DATEADD( "dd" , -1, GETDATE() ) ) + Right("0"+(DT_WSTR, 2)DATEPART( "mm", DATEADD( "dd" , -1, GETDATE() ) ),2) + Right("0"+(DT_WSTR, 2)DATEPART( "dd", DATEADD( "dd" , -1, GETDATE() ) ) ,2)) +"_*.TXT"
    DateCategory variable should be of type string
    and Date should of type date
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Autofill dates for a week based on date selected...

    If I have a table that has Monday-Friday on it and I want to select the date on Monday and have it fill in the dates for the rest of the week, how would I do that. Or is there a way so that when it is opened on Monday, it inputs the date into the cell for Monday, then on Tuesday when it is opened, it inputs the date into the cell for Tuesday without changing the date in Monday's box? Either way is fine with me. Thanks!

    Here's a sample. https://workspaces.acrobat.com/?d=bWS4uDJgJKsWM8USbHsuKg
    In the Week Ending field you select the date - in this case it is checking to make sure that a Saturday is selected. From there it fills in the dates for the fields.

  • Xpath expression for a requirement

    Hi,
    I have a xpath like below in my bpel code ( which works perfectly fine).
    /ns15:ShortName[starts-with(.,'ABC') or starts-with(.,'PQR')]
    This gives me the ShortName which starts with either ABC or PQR.
    However our requirement is changing and we want to also captue shortNames that start with 'MNO' also. In future we may get some other strings also. So basically I want this to be dynamically populated from ora:preferences.
    So I tried a. created a preference in composite xml
    <property name="bpel.preference.FacilityShortName">starts-with(.,'ABC') or starts-with(.,'PQR')</property>
    and planned to use it in bpel xpath like this
    /ns15:ShortName[ora:getPreference('FacilityShortName')]
    But this doesnt work.
    I also tried using a variable to store the preference first and use the variable inside the xpath like this /ns15:ShortName[$var]
    even that doesnt work.
    Can some one suggest me any ideas or solutions to acheive this.
    Regards,
    Sridhar.
    Edited by: Sridhar-SOA on Aug 8, 2012 5:50 AM

    Thanks a lot. I really need this very urgently.
    The below is the xpath value that I am assigning to a variable in my bpel code:
    $callCSTStServiceOutputVar.payload/ns0:BodyMsg/ns0:CmpCSTEBO[ns0:CSTEBO/ns0:ABORecordInfo/ns0:LastSourcedFrom/text()='IMP']/ns0:CSTCts/ns0:CSTCountry/ns0:CSTSt[ns0:CSTStFties/ns0:Fty/ns0:FtyEBO/ns0:SN[starts-with(.,'ABC') or starts-with(.,'VMH')]][ns0:CSTStFties/ns0:FtyLs/ns0:FtyLocation/ns0:CSTStFtyRls/ns0:CSTStFtyRlEBO/ns0:PyFtyFlag/text()='Y']/ns0:CSTStEBO/ns0:SSR
    Input xml : ($callCSTStServiceOutputVar.payload is of ns0:EBM type)
    <ns0:EBM>
    <ns0:BodyMsg>
    <ns0:CmpCSTEBO>
    <ns0:CSTEBO>
    <ns0:ABORecordInfo>
    <ns0:LastSourcedFrom>IMP</ns0:LastSourcedFrom>
    </ns0:ABORecordInfo>
    </ns0:CSTEBO>
    <ns0:CSTCts>
    <ns0:CSTCountry>
    <ns0:CSTSt>
    <ns0:CSTStEBO>
    <ns0:SSR>123</ns0:SSR>
    </ns0:CSTStEBO>
    <ns0:CSTStFties>
    <ns0:Fty>
    <ns0:FtyEBO>
    <ns0:SN>TEST-ABC-Dummy</ns0:SN>
    </ns0:FtyEBO>
    </ns0:Fty>
    <ns0:FtyLs>
    <ns0:FtyLocation>
    <ns0:CSTStFtyRls>
    <ns0:CSTStFtyRlEBO>
    <ns0:PyFtyFlag>Y</ns0:PyFtyFlag>
    </ns0:CSTStFtyRlEBO>
    </ns0:CSTStFtyRls>
    </ns0:FtyLocation>
    </ns0:FtyLs>
    </ns0:CSTStFties>
    </ns0:CSTSt>
    <ns0:CSTSt>
    <ns0:CSTStEBO>
    <ns0:SSR>345</ns0:SSR>
    </ns0:CSTStEBO>
    <ns0:CSTStFties>
    <ns0:Fty>
    <ns0:FtyEBO>
    <ns0:SN>TEST2-ABC-Dummy</ns0:SN>
    </ns0:FtyEBO>
    </ns0:Fty>
    <ns0:FtyLs>
    <ns0:FtyLocation>
    <ns0:CSTStFtyRls>
    <ns0:CSTStFtyRlEBO>
    <ns0:PyFtyFlag>Y</ns0:PyFtyFlag>
    </ns0:CSTStFtyRlEBO>
    </ns0:CSTStFtyRls>
    </ns0:FtyLocation>
    </ns0:FtyLs>
    </ns0:CSTStFties>
    </ns0:CSTSt>
    </ns0:CSTCountry>
    <ns0:CSTCountry>
    <ns0:CSTSt>
    <ns0:CSTStEBO>
    <ns0:SSR>50844</ns0:SSR>
    </ns0:CSTStEBO>
    <ns0:CSTStFties>
    <ns0:Fty>
    <ns0:FtyEBO>
    <ns0:SN>ABC-Dummy</ns0:SN>
    </ns0:FtyEBO>
    </ns0:Fty>
    <ns0:FtyLs>
    <ns0:FtyLocation>
    <ns0:CSTStFtyRls>
    <ns0:CSTStFtyRlEBO>
    <ns0:PyFtyFlag>Y</ns0:PyFtyFlag>
    </ns0:CSTStFtyRlEBO>
    </ns0:CSTStFtyRls>
    </ns0:FtyLocation>
    </ns0:FtyLs>
    </ns0:CSTStFties>
    </ns0:CSTSt>
    <ns0:CSTSt>
    <ns0:CSTStEBO>
    <ns0:SSR>567</ns0:SSR>
    </ns0:CSTStEBO>
    <ns0:CSTStFties>
    <ns0:Fty>
    <ns0:FtyEBO>
    <ns0:SN>TEST-3-ABC-Dummy</ns0:SN>
    </ns0:FtyEBO>
    </ns0:Fty>
    <ns0:FtyLs>
    <ns0:FtyLocation>
    <ns0:CSTStFtyRls>
    <ns0:CSTStFtyRlEBO>
    <ns0:PyFtyFlag>Y</ns0:PyFtyFlag>
    </ns0:CSTStFtyRlEBO>
    </ns0:CSTStFtyRls>
    </ns0:FtyLocation>
    </ns0:FtyLs>
    </ns0:CSTStFties>
    </ns0:CSTSt>
    </ns0:CSTCountry>
    </ns0:CSTCts>
    </ns0:CmpCSTEBO>
    </ns0:BodyMsg>
    </ns0:EBM>
    The output should be :
    50844.
    The xpath mentioned works and it infact returns the required 50844 output.
    However now I want to make it dynamic . ie., Have some preference (lets say pereference name is - SSF) in soa 11g that can contain- ABC%,VMH%, etc.....
    and my xpath should have something like
    .......ns15:SN[xp20:matches(.,ora:getPreference('SSF')].......
    (Note here the .(dot) is the current node ie., ns15:SN)
    This is not working for me.
    Kindly help asap.
    Regards,
    Sridhar.
    Edited by: Sridhar-SOA on Aug 11, 2012 9:13 AM
    Edited by: Sridhar-SOA on Aug 11, 2012 9:14 AM
    Edited by: Sridhar-SOA on Aug 11, 2012 10:00 AM
    Edited by: Sridhar-SOA on Aug 11, 2012 10:14 AM
    Edited by: Sridhar-SOA on Aug 12, 2012 3:55 AM

Maybe you are looking for