develooper Front page | perl.beginners | Postings from July 2008

Removing lines from start of tag to end of tag in XML's

Thread Next
From:
life is beautiful
Date:
July 4, 2008 09:47
Subject:
Removing lines from start of tag to end of tag in XML's
Hi All,
Can some one help me gain knowledge as how I can
delete few lines from XML.

Example
  <resource-ref id="ResourceRef_LSSimulator_DataSource_3">
         <res-ref-name>java:/LockTestDb</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Application</res-auth>
         <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>
      <resource-ref id="ResourceRef_LSSimulator_WorkManager_1">
         <res-ref-name>wm/default</res-ref-name>
         <res-type>com.ibm.websphere.asynchbeans.WorkManager</res-
type>
         <res-auth>Container</res-auth>
         <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>


Here I need to delete Only
<resource-ref id="ResourceRef_LSSimulator_DataSource_3">
         <res-ref-name>java:/LockTestDb</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Application</res-auth>
         <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>
Meaning .. I need to delete the tag for Datasource occurance.
Any help will be appreciated


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About