in reply to Re^2: placing an existing line from my XML file to the top of the file
in thread placing an existing line from my XML file to the top of the file

I am trying to match an XML schema that gets created by a different Test Infrastructure.

Then better don't think in terms of lines. XML has no concept of lines. With a few exceptions, line breaks, spaces and tabs are all the same for XML, and it does not matter if you use one, two, ten or a million of them. The only sane way to work with XML is to use XML tools. XML::LibXML is one of those tools.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re^3: placing an existing line from my XML file to the top of the file