Re: Memory problem with XML::DOM::Parser???

From: Ben Morrow (usenet_at_morrow.me.uk)
Date: 06/07/04


Date: Mon, 7 Jun 2004 05:01:57 +0000 (UTC)


Quoth markus.mohr@mazimoi.de:
> On Sun, 6 Jun 2004 03:52:10 +0000 (UTC), Ben Morrow
> <usenet@morrow.me.uk> wrote:
>
> >Quoth markus.mohr@mazimoi.de:
> >>
> >> Now, here is the code, and that's prety all I have to master.
> >>
> >> Do you think there is anything to do about rwriting this piece of code
> >> for XML::LibXML2?
> >
> >All of this stuff will be the same with XML::LibXML, once you have your
> >CXML object using the same DOM library.
> >
> >In theory, as the DOM provides a specification of the methods etc., you
> >should simply be able to switch 'XML::LibXML' for 'XML::DOM' throughout
> >and it'll all be fine... it won't, of course (life's never that simple),
> >but the changes required shouldn't be major.
>
> Okay, Ben, thank you very much. Here is the complete code for
> "CXML.pm" for your interest. Of course, it contains XML::DOM
> statements.
>
> Can you have a look at this file as well?

No, *you* look at it. AFAICS, there is very little in there that won't
work if you simply change 'XML::DOM' to 'XML::LibXML' throughout. When
you've done this, and fixed the obvious differences (e.g. LibXML takes
the xml version and encoding in the document constructor rather than in
a separate method call) *then* post back if you have any insurmountable
problems, with a *SMALL* complete example showing what it is you can't
figure out.

Ben

-- 
Musica Dei donum optimi, trahit homines, trahit deos.    |
Musica truces molit animos, tristesque mentes erigit.    |   ben@morrow.me.uk
Musica vel ipsas arbores et horridas movet feras.        |


Relevant Pages

  • Re: Perl HASH problem
    ... You would be better off with a more descriptive name than FILEHADLE. ... for you (see perldoc -q editor). ... Musica Dei donum optimi, trahit homines, trahit deos. ...
    (comp.lang.perl.misc)
  • Re: ithreads at runtime?
    ... > lock() and sharecalls. ... > started complaining that I need to use threads before I ... Musica Dei donum optimi, trahit homines, trahit deos. ...
    (comp.lang.perl.misc)
  • Re: No performance gain using threads?
    ... > I have a perl program that spawns as many threads as the number of ... Musica Dei donum optimi, trahit homines, trahit deos. ...
    (comp.lang.perl.misc)
  • Re: an original perldoc viewer
    ... > Ben Morrow wrote: ... >> USE TAINT MODE. ... Musica Dei donum optimi, trahit homines, trahit deos. ...
    (comp.lang.perl.misc)
  • Re: Can Perl do this task???
    ... > socket. ... > I was thinking that I could create a perl program and via a pipe ... Musica Dei donum optimi, trahit homines, trahit deos. ...
    (comp.lang.perl.misc)