It's all about the answers!

Ask a question

[closed] Create the XPATH ?


shweta ranaware (371751) | asked Sep 22 '16, 8:36 a.m.
closed Sep 22 '16, 8:40 a.m. by Ralph Schoon (63.1k33646)
 Hi All,

I want to create XPATH in such way that It will change the value of every <activation-config-property-value> to BBC which is having <activation-config-property-name> as password So How can create the XPATH from below XML contents :

<?xml version="1.0" encoding="ASCII"?><ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
  <display-name>Messaging</display-name>
  <enterprise-beans>
  <message-driven>
  <ejb-name>DB</ejb-name>
  <ejb-class>com.lhs.messaging.</ejb-class>
  <transaction-type>Container</transaction-type>
  <activation-config>  
  <activation-config-property>
  <activation-config-property-name>password</activation-config-property-name>
  <activation-config-property-value>bcs2</activation-config-property-value>
  </activation-config-property>
  <activation-config-property>
<activation-config-property-name>maxSession</activation-config-property-name>
<activation-config-property-value>10</activation-config-property-value>
</activation-config-property>    
 
</activation-config>
  </message-driven>
<message-driven>
  <ejb-name>Mobileh</ejb-name>
  <ejb-class>com.lhs.messaging.ejb.MDB</ejb-class>
  <transaction-type>Container</transaction-type>
  <activation-config>  
  <activation-config-property>
  <activation-config-property-name>password</activation-config-property-name>
  <activation-config-property-value>bcs2</activation-config-property-value>
  </activation-config-property>
  <activation-config-property>
  <activation-config-property-name>Destination</activation-config-property-name>
  <activation-config-property-value>DU.DEV</activation-config-property-value>
  </activation-config-property>  
 
</activation-config>
  </message-driven>
  </enterprise-beans>
  </ejb-jar>


 


Comments
Ralph Schoon commented Sep 22 '16, 8:43 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I closed this as off topic.

If you can provide a tagging that explains why this has anything to do with the Jazz products or other products we discuss here, please do so.
Also review the question and provide context such as product versions and names and the relevant context that users need in the question content.

If you have done so, add another comment below and I will consider to reopen the question.

Thanks

The question has been closed for the following reason: "Question is off-topic or not relevant" by rschoon Sep 22 '16, 8:40 a.m.