Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: How can I keep or discard certain blocks of an XML file based on first line of block?

by Anonymous Monk
on Jun 26, 2014 at 22:19 UTC ( [id://1091408]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How can I keep or discard certain blocks of an XML file based on first line of block?
in thread How can I keep or discard certain blocks of an XML file based on first line of block?

poj, thank you again. I read the node you mentioned but wasn't sure if you were implying there's no good solution, or if you were simply telling me to replace twig_roots with twig_handlers. The last person to post there seemed to be taking a shot in the dark, and no one confirmed whether that would work.

As for keep_atts_order I did discover that in the module docs but what confuses me on that is that if I add

keep_atts_order => 'TRUE',

under Windows (using ActivePerl) I get an error message, yet if I do the exact same thing on a Linux box it works with no complaints. Anyway, I did some more testing and found that neither the re-ordering of the data elements nor the blank lines seem to have any adverse affect on operation. The reordered data element don't bother me as much as the blank lines simply because if I am trying to look at the output they make it harder to see everything at a glance, but that's not all that big a deal either because this file isn't really meant to be read by humans, it's just an intermediate step in a process.

So thank you again and if you have any thoughts on what I can do about those initial blocks, as I explained in my previous post, I would much appreciate hearing them.

  • Comment on Re^4: How can I keep or discard certain blocks of an XML file based on first line of block?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-16 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found