I am trying to convert an xml file through perl. I want to remove the new line, for example:-
My xml:-
[code=xml]
<bridgehead>
<strong>Explora tion and Settlement</strong>
</bridgehead>
[/code]
i want to convert the above xml file as:
<bridgehead><st rong>Exploratio n and Settlement</strong></bridgehead>
my code is :-
[code=perl]
$k =~ s/\n\<[^>]>/\<$1>/g;
[/code]
Please Advice,
srkumar
My xml:-
[code=xml]
<bridgehead>
<strong>Explora tion and Settlement</strong>
</bridgehead>
[/code]
i want to convert the above xml file as:
<bridgehead><st rong>Exploratio n and Settlement</strong></bridgehead>
my code is :-
[code=perl]
$k =~ s/\n\<[^>]>/\<$1>/g;
[/code]
Please Advice,
srkumar
Comment