satzbu has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: XML split code correction
by Corion (Patriarch) on Jun 29, 2010 at 10:23 UTC

    This is not your program. This is xml_split - split huge XML documents into smaller chunks, also in XML::Twig. It often helps to give credit where credit is due so that no untoward suspicions are raised as to whether you are trying to pass off code you didn't write as your own.

    If you want to process data instead of writing it to a file, why don't you just rip out the part where the program is writing to a file and replace it by your processing code?

      Dear monks i hav a code from net...

      Maybe not easy to understand but a decent disclaimer of ownership. :)

Re: XML split code correction
by mirod (Canon) on Jun 29, 2010 at 14:42 UTC

    It is a little hard to understand what you want. So just 2 comments: use the version of xml_split that comes with XML::Twig, this way you will get a more recent version of the tool. Then if you want to process the chunks before outputting them, it is probably better for you to write your own code, the example in Processing an XML document chunk by chunk should help you.

    The alternative is to use xml_split as is, which looks like it would be more complex.