Hello,
I have an xml document that has one too many end tags in over 500 documents. I want to eliminate one of the end tags and thought I would use it with a substitution line. However I have been unsuccesful.
example of text:
</body>
</prod_batch>
</prod_batch>
I wrote:
perl -pi -e "s#</prod_batch>\n</prod_batch>#</prod_batch>#g *.xml
Can someone help?
I have an xml document that has one too many end tags in over 500 documents. I want to eliminate one of the end tags and thought I would use it with a substitution line. However I have been unsuccesful.
example of text:
</body>
</prod_batch>
</prod_batch>
I wrote:
perl -pi -e "s#</prod_batch>\n</prod_batch>#</prod_batch>#g *.xml
Can someone help?