Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: XML::LibXML - could not create file parser context : no error

by choroba (Bishop)
on Nov 15, 2013 at 13:54 UTC ( #1062744=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML::LibXML - could not create file parser context : no error
in thread XML::LibXML - could not create file parser context : no error

Problem is somewhere else, I would say, as the following works for me without problem:
for (1 .. 10000) { my $p = 'XML::LibXML'->new; my $d = $p->parse_file('example.xml'); my $n = $d->findnodes('/'); }

Does any other process overwrite the file at the same time?

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^3: XML::LibXML - could not create file parser context : no error
  • Download Code

Replies are listed 'Best First'.
Re^4: XML::LibXML - could not create file parser context : no error
by Anonymous Monk on Nov 15, 2013 at 14:03 UTC
    Hi Choroba, The file is actually only read and nothing is written to it. Also, the file is not accessed by any other processes. Does the error statement "No error" has any significance ?? Thanks, Bala.
      Does this help you? Google thinks it is related to "No error". What version of XML::LibXML do you happen to run?
      لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
        Hi choroba, We use xml::libxml version 2.0016 only and the thread you had referred mentions about higher versions like 2.5 and 2.6 etc. Are you sure, this could be the issue. If so , please advise if switching from 2.0016 to 2.5.11 is advisable ? update: Sorry i got confused between xml::libxml version and libxml2 version. The XML::Libxml (2.0016) is linked to libxml2 version 2.7.8 which is later than 2.5.11 only. Thanks, Bala.

      If nothing is written to the file, it never changes. So why are you parsing it over and over again? I don't see the point in that but perhaps you can explain.

        Its actually a part of large framework with different API's each of them independently will have access to file at various stages. So , the file is parsed multiple times, though nothing is written to it. Regards, Bala.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062744]
help
Chatterbox?
Veltro Sees open mouth and feeds troll
[Corion]: usemodperl: Naah, you're just being unreasonable. It's not hard to download https URLs, and we've shown you ways to avoid downloading at all, and ways to keep downloading via http possible. You reject both.
[choroba]: Also, try asking at IRC
[usemodperl]: corion baby you have done nothing of the sort
[usemodperl]: asking how to download from cpan with core perl via http is unreasonable???
[Corion]: usemodperl: No, asking is not unreasonable. Insisting that it must always keep working for you is unreasonable.
[Corion]: But again, you haven't explained why your users need to download, or why they need to download via http, or why you can't host the SSL-stripper yourself.
[choroba]: Wait a second. Does shutting down search.cpan.org mean the cpan clients can no longer use their urllist?
[usemodperl]: i'm under no obligation to explain myself mommy, and i'm not insisting, just asking a simple question
[Veltro]: So, I'm confused on the matter actually. There are locked-down computers, but they need updates. How does that work? Isn't that contradictary?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2018-06-24 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?