in reply to Re: Separate a single xml into mulitple XML using perl
in thread Separate a single xml into mulitple XML using perl

I do find XML::Twig pretty easier, My superiors are so adamant on sticking to XML::Simple, I don't get a say in that. That's the reason as of now I'm sticking with XML::Simple. But can anything be done on the code I posted? Really appreciate the help

  • Comment on Re^2: Separate a single xml into mulitple XML using perl

Replies are listed 'Best First'.
Re^3: Separate a single xml into mulitple XML using perl
by Laurent_R (Canon) on Jan 06, 2016 at 19:05 UTC
    My superiors are so adamant on sticking to XML::Simple
    Perhaps you should try to have them read this: XML::Simple needs to go!
Re^3: Separate a single xml into mulitple XML using perl
by Jenda (Abbot) on Jan 07, 2016 at 10:41 UTC

    See Simpler than XML::Simple

    If you have XML::Simple, you most likely also have XML::Parser & XML::Parser::Expat. XML::Rules is a plain Perl module on top of XML::Parser::Expat, so you don't really need to build and install it into the Perl directories, you can use it as a module you write yourself and copy it with the rest of your app/scripts.

    I believe you can do the same with XML::Twig.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

Re^3: Separate a single xml into mulitple XML using perl
by Anonymous Monk on Jan 06, 2016 at 08:12 UTC

    But can anything be done on the code I posted?

    Yes, it can be ignored :)

    It doesn't use XML::Simple, its parsing xml by hand

    The xml file you posted isn't valid