Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by choroba (Abbot)
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
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.

      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.
      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-08-30 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls