Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Do you know where your variables are?
 
PerlMonks  

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

by Zaxo (Archbishop)
on May 15, 2005 at 14:52 UTC ( [id://457268]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 06: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,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://457268]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.