Murugan has asked for the wisdom of the Perl Monks concerning the following question:
Below three lines is in one file data.xml
<inline-formula id="ieqn-1"><alternatives><mml:math display="inline"><mml:mi>τ</mml:mi></mml:math></alternatives></inline-formula>
<inline-formula id="ieqn-2"><alternatives><mml:math display="inline"><mml:mi>τ</mml:mi></mml:math></alternatives></inline-formula>
<inline-formula id="ieqn-3"><alternatives><mml:math display="inline"><mml:mi>τ</mml:mi></mml:math></alternatives></inline-formula>
Now i need this lines as separate file like below:
ieqn-1.mml
ieqn-2.mml
ieqn-3.mml
perl script needed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extract tag form xml file
by marto (Cardinal) on Dec 03, 2018 at 10:53 UTC | |
|
Re: extract tag form xml file
by hippo (Archbishop) on Dec 03, 2018 at 11:19 UTC | |
by marto (Cardinal) on Dec 03, 2018 at 11:26 UTC | |
by hippo (Archbishop) on Dec 03, 2018 at 11:44 UTC | |
by Preceptor (Deacon) on Dec 03, 2018 at 15:55 UTC | |
by Aldebaran (Curate) on Dec 04, 2018 at 02:29 UTC | |
by hippo (Archbishop) on Dec 04, 2018 at 09:06 UTC | |
|
Re: extract tag form xml file
by NetWallah (Canon) on Dec 04, 2018 at 00:55 UTC | |
|
Re: extract tag form xml file
by marto (Cardinal) on Dec 04, 2018 at 10:28 UTC | |
|
Re: extract tag form xml file
by karlgoethebier (Abbot) on Dec 04, 2018 at 11:09 UTC | |
|
Re: extract tag form xml file
by Jenda (Abbot) on Mar 20, 2019 at 15:28 UTC |