in reply to Re: Reading and Manipulation XML Files
in thread Reading and Manipulation XML Files

Thanks for your answer, much appreciated. I didn't want to spam the page so I didn't add the entire xml/dtd just a snipe of it. As it still feels somewhat hard to describe my problem technical and on the dot I tried not to over-spam. Now you did say that it is rather a bad idea, what would you suggest how I can solve this sleeker? The aim of this task is to prove a migration script that would read an extract (out.xml) and look for this QuantResources,and complete them depending on there NodeID/Group. Then the System would be able to control the components better. This is for a tool called ControlM. thanks again
  • Comment on Re^2: Reading and Manipulation XML Files

Replies are listed 'Best First'.
Re^3: Reading and Manipulation XML Files
by Anonymous Monk on Mar 26, 2010 at 12:18 UTC
    ..so I didn't add the entire xml/dtd just a snipe of it.

    Thats fine, but you could have made it a valid snip, unless the purpose of your post was to troubleshoot your xml (which would be off topic , How (Not) To Ask A Question)

    . Now you did say that it is rather a bad idea, what would you suggest how I can solve this sleeker?

    Like I already said and showed. Using proper parser always beats hand parsing xml.

      Hi, thanks again. It was not my intention to ask something non-Perl related so let me just show you the lot. Basically this is a config dtd of an Automation tool called Control-M. The Jobs which are the automated processes reflect the information in the xml. (Start time, Group-name etc). And this is an extract of 1 application witch is setup in Control-M. Every other App will have the same structure and I need to merge for every single App now the Quantitative Resources which enable me later on in Control-M to stop Job-Groups or an entire Node rather than every single Process. I hope I made a little more sense now? Thanks again
        Hi, thanks again. It was not my intention to ask something non-Perl related so let me just show you the lot.

        I never believed that was your intention.

        an entire Node rather than every single Process. I hope I made a little more sense now?

        You were making sense before, and I'm sure I've answered that question already. If you have a more specific question, please go ahead and ask it. See How (Not) To Ask A Question for tips, like providing a runnable program, along with sample input (which you provided) and expected output (which you didn't provide) and how it differs from your actual output.