Not really, think how much programming effort would it take to generate a
file where and corresponding would be intermixed
:)
To be honestly, that's why I'm using perl because it is fast and reliable
for processing text...
Assuming that you keep only one file open at a time and your filehandle
> I have to say that I'm very lucky because the document keeps a very well
> defined order of and ...
Not really, think how much programming effort would it take to generate a
file where and corresponding would be intermixed :)
> The last question about my approach is, I found a good place
tatement to say, if FH is opened, then
close it?
Thanks in deeply,
Nan
From: Peter Rabbitson <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject: Re: Errors on processing 2GB XML file by using XML:Simple
Date: Wed, 18 May 2005 09:06:33 -0500
> I know the answer of second question after r
> I know the answer of second question after reading a quick reference of
> twig...
You know the answer to your first question as well - you've been looking at
it the whole day :)
> >I have examined the XML file and all with children are
> >followed by their own s. If there is a without
> >
Sorry Peter,
I know the answer of second question after reading a quick reference of
twig...
Nan
From: "Nan Jiang" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], beginners@perl.org
Subject: Re: Errors on processing 2GB XML file by using XML:Simple
Date: Wed, 18 May 2005 13:44:2
#x27; => \&_topic_handler? If so, what are they?
Sorry to bother you again,
Nan
From: Peter Rabbitson <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject: Re: Errors on processing 2GB XML file by using XML:Simple
Date: Tue, 17 May 2005 07:40:14 -0500
> Your codes look great and it works
> Your codes look great and it works perfectly with only some minor problems
> which might due to the XML file itself (I think). However, compared your
> codes with mine, there are something I'd like to ask you if you don't mind.
Not that much :)
> 1) what's the main difference on memory load b
ut this?
Sorry I'm really new in Perl XML processing...
Many many thanks again,
Nan
From: Peter Rabbitson <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject: Re: Errors on processing 2GB XML file by using XML:Simple
Date: Mon, 16 May 2005 09:31:15 -0500
On Mon, May 16, 2005 at 01:33:15PM +
Hi Peter,
Thank you so much for your advice. I'll try to understand what you write and
let you know the results!
Best wishes,
Nan
From: Peter Rabbitson <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject: Re: Errors on processing 2GB XML file by using XML:Simple
Date: Mon, 16 May 20
On Mon, May 16, 2005 at 01:33:15PM +, Nan Jiang wrote:
> While I think and are not randomly intermixed as
> nodes are generated in relevant categories such as ->
> -> and then if the has
> children which means it is a final category, then nodes
> appeared immediatly below the with
d then if the has
children which means it is a final category, then nodes
appeared immediatly below the with the same order as .
Thanks again,
Nan
From: Peter Rabbitson <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject: Re: Errors on processing 2GB XML file by using XML:Simple
Dat
> Basically, the XML file has two key parallelled nodes: and
> . If there is a child existing in ,
> node will be existing for showing more detailed information
> about the content of this such as and .
>
> However, not every node has one or more child, so I need
> to write a loop to fi
ile, a Windows Memory Error pops up and the program halt. The only root I
can say is because and are parallelled inside
Thanks again,
Nan
From: Peter Rabbitson <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject: Re: Errors on processing 2GB XML file by using XML:Simple
Date: Mon, 16 May
> I have tried to use XML:Twig to parse a 2GB XML file instead of using
> XML:Simple, but I still got an error "The memory couldn't be written". My
> Perl is the latest and my RAM is 1GB.
Are you issuing a $twig->purge at the end of each handler? Without it memory
is not implicitly released (no
ED]>
To: beginners@perl.org
Subject: Re: Errors on processing 2GB XML file by using XML:Simple
Date: Fri, 13 May 2005 09:46:09 -0500
> I keep receiving virtual memory error and program runtime error while
using
> XML:simple to process a 2GB XML file on Windows 2000. I have changed
> virtual m
"Nan Jiang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >From: Peter Rabbitson <[EMAIL PROTECTED]>
> >To: beginners@perl.org
> >Subject: Re: Errors on processing 2GB XML file by using XML:Simple
> >Date: Fri, 13 May 2005 09:46:09 -
TED]>
To: beginners@perl.org
Subject: Re: Errors on processing 2GB XML file by using XML:Simple
Date: Fri, 13 May 2005 09:46:09 -0500
> I keep receiving virtual memory error and program runtime error while
using
> XML:simple to process a 2GB XML file on Windows 2000. I have changed
> virtua
> I keep receiving virtual memory error and program runtime error while using
> XML:simple to process a 2GB XML file on Windows 2000. I have changed
> virtual memory to 4 GB but still no use, so I wonder if anyone could offer
> some help? Or is there any better module to process a 2GB XML file?
Hi all,
I keep receiving virtual memory error and program runtime error while using
XML:simple to process a 2GB XML file on Windows 2000. I have changed virtual
memory to 4 GB but still no use, so I wonder if anyone could offer some
help? Or is there any better module to process a 2GB XML file?
19 matches
Mail list logo