No need for XPATH. Use op-attr noun token.

<do-set-local-variable name="ADDED-VALUE" scope="policy">
<arg-string>
<token-op-attr name="CostCenter"/>
</arg-string>
</do-set-local-variable>

This will get the value being 'added'. To get the removed value, you
would use the Removed Attribute noun token like this:

<do-set-local-variable name="REMOVED-VALUE" scope="policy">
<arg-string>
<token-removed-attr name="CostCenter"/>
</arg-string>
</do-set-local-variable>

If you have more than one add/remove, you can treat the the results of
that token as a nodeset, and use it as the data for a for-each loop and
then do something with each instance it finds.



On 8/8/2012 7:06 PM, eden silva wrote:
>
> hi
>
> when I perform a modification on 3 attributes in eDir, the JDBC driver
> displays the following xml in the trace:
>
> -------------------------------------------------------------------------------
> <input>
> <modify cached-time="20120808224450.392Z" class-name="User"
> event-id="mid-test#20120808224450#1#1"
> qualified-src-dn="O=MIDTEST\OU=PEOPLE\CN=33223312"
> src-dn="\IDMDESA1-TREE\MIDTEST\PEOPLE\33223312" src-entry-id="60810"
> timestamp="1344465888#6">
> <association
> state="associated">\IDMDESA1-TREE\MIDTESTA\PEOPLE\33223312</association>
> <modify-attr attr-name="LivFunctionCode">
> <remove-value>
> <value timestamp="1344464736#8"
> type="string">00000087</value>
> </remove-value>
> <add-value>
> <value timestamp="1344465888#4"
> type="string">00000097</value>
> </add-value>
> </modify-attr>
> <modify-attr attr-name="LivWorkAreaCode">
> <remove-value>
> <value timestamp="1344464736#2" type="string">B</value>
> </remove-value>
> <add-value>
> <value timestamp="1344465888#2" type="string">A</value>
> </add-value>
> </modify-attr>
> <modify-attr attr-name="costCenter">
> <remove-value>
> <value timestamp="1344465063#2"
> type="string">2231010572</value>
> </remove-value>
> <add-value>
> <value timestamp="1344465888#6"
> type="string">2331010573</value>
> </add-value>
> </modify-attr>
> </modify>
> </input>
>
> ---------------------------------------------------------------------------------
>
> Now, I want to get the value of the attribute "CostCenter"
>
> How I can use the XPath function to get the value "2331010573" and
> saved in a LocalVariable?
>
> Any suggestions?
>
> thanks
>
>