Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: placing an existing line from my XML file to the top of the file

by GrandFather (Saint)
on Aug 19, 2015 at 06:07 UTC ( [id://1139125]=note: print w/replies, xml ) Need Help??


in reply to placing an existing line from my XML file to the top of the file

Why? In the sample XML you provide that doesn't seem a sensible thing to do as it would break the XML. What is the problem you are trying to solve by moving that line?

Premature optimization is the root of all job security

Replies are listed 'Best First'.
Re^2: placing an existing line from my XML file to the top of the file
by gasjunkie_jabz (Novice) on Aug 19, 2015 at 15:57 UTC

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

      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". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1139125]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-29 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found