in reply to Memory errors while processing 2GB XML file with XML:Twig on Windows 2000

Not much info, but the 2GB limit suggests that your perl or OS lacks large file support. With OS support, perl can be recompiled to provide that. Run perl -V on the command line to check.

After Compline,
Zaxo

  • Comment on Re: Memory errors while processing 2GB XML file with XML:Twig on Windows 2000

Replies are listed 'Best First'.
Re^2: Memory errors while processing 2GB XML file with XML:Twig on Windows 2000
by nan (Novice) on May 16, 2005 at 10:53 UTC
    Hi Zaxo,

    Thank you for the advice. My Perl is v5.8.6 built for MSWin32-x86-multi-thread.

    My XML sample file is shown below:

    Basically, the XML file has two key parallelled nodes: <Topic/> and <ExternalPage/>. If there is a <link/> child existing in <Topic/>, <ExternalPage/> node will be existing for showing more detailed information about the content of this <link/> such as <d:Title/> and <d:Description/>.

    However, not every <Topic/> node has one or more <link/> child, so I need to write a loop to find out if <link/> is a child of <Topic/> nodes. If there are some <link/> nodes existing, I will check each of <ExternalPages> to output more information.

    my codes are shown below which is quite straightforward:

    Thanks again,