Hi All,

 

I have got an xml like this below. I want to read this file in Perl and
want to retrieve the text which end with .xml. 

For example , I want to print the text "jms/hppjmsmodules-jms.xml",
since it ends with .xml

Thanks in advance for your help.

 

<?xml version='1.0' encoding='UTF-8'?>

<domain xmlns="http://www.bea.com/ns/weblogic/90/domain";
xmlns:sec="http://www.bea.com/ns/weblogic/90/security";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls";
xsi:schemaLocation="http://www.bea.com/ns/weblogic/910/domain.xsd";>

 <jms-system-resource>

    <name>hppjmsmodules</name>

    <target>HPPWSCluster</target>

    <sub-deployment>

      <name>BEA_JMS_MODULE_SUBDEPLOYMENT_JMSServer1</name>

      <target>JMSServer1</target>

    </sub-deployment>

    <sub-deployment>

      <name>BEA_JMS_MODULE_SUBDEPLOYMENT_JMSServer2</name>

      <target>JMSServer2</target>

    </sub-deployment>

    <sub-deployment>

      <name>BEA_JMS_MODULE_SUBDEPLOYMENT_hppjmsmodules</name>

      <target>HPPWSCluster</target>

    </sub-deployment>

 
<descriptor-file-name>jms/hppjmsmodules-jms.xml</descriptor-file-name>

  </jms-system-resource>

  <admin-server-name>AdminServer</admin-server-name>

  <jdbc-system-resource>

    <name>JDBC Data Source-0</name>

    <target>HPPWSCluster</target>

 
<descriptor-file-name>jdbc/JDBC_Data_Source-0-3407-jdbc.xml</descriptor-
file-name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>JDBC Data Source-1</name>

    <target>HPPWSCluster</target>

 
<descriptor-file-name>jdbc/JDBC_Data_Source-1-3408-jdbc.xml</descriptor-
file-name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>JDBC Multi Data Source</name>

    <target>HPPWSCluster</target>

 
<descriptor-file-name>jdbc/JDBC_Multi_Data_Source-5643-jdbc.xml</descrip
tor-file-name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>GDOS-Source-0</name>

    <target>HPPWSCluster</target>

 
<descriptor-file-name>jdbc/GDOS-Source-0-4150-jdbc.xml</descriptor-file-
name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>GDOS-Source-1</name>

    <target>HPPWSCluster</target>

 
<descriptor-file-name>jdbc/GDOS-Source-1-4149-jdbc.xml</descriptor-file-
name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>GDOS Multi Data Source</name>

    <target>HPPWSCluster</target>

 
<descriptor-file-name>jdbc/GDOS_Multi_Data_Source-9749-jdbc.xml</descrip
tor-file-name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>Legacy Hou Sys</name>

    <target>HPPWSCluster</target>

 
<descriptor-file-name>jdbc/Legacy_Hou_Syse28093_Node_1-5756-jdbc.xml</de
scriptor-file-name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>Legacy</name>

    <target>HPPWSCluster</target>

 
<descriptor-file-name>jdbc/Legacy_Hou_Sys_e28093_Node_2-4461-jdbc.xml</d
escriptor-file-name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>Secondary Multi Data Source</name>

    <target>HPPWSCluster</target>

 
<descriptor-file-name>jdbc/Secondary_Multi_Data_Source-8174-jdbc.xml</de
scriptor-file-name>

  </jdbc-system-resource>

</domain>

Thanks & Regards,

Thomas Reddy A

 

"The more I learn, the more I realize how much I don't know"

 

Reply via email to