in reply to Re: 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

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

  • Comment on Re^2: placing an existing line from my XML file to the top of the file

Replies are listed 'Best First'.
Re^3: placing an existing line from my XML file to the top of the file
by afoken (Chancellor) on Aug 19, 2015 at 18:05 UTC
    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". ;-)