in reply to Re: XML::LibXML- Escape Empty Tags
in thread XML::LibXML- Escape Empty Tags

Thanks a lot, this seems to work. However, can you explain to me two things, the line
# print $doc->serialize();
As i ve got no idea about what it is suppose to actually do. and the use of my $doc = $parser->parse_fh(\*DATA);. I guess this is to work with filehandle but i was under the impression that parse_file was much better for big file manipulation (since i am in fact using to parse some 600 meg XML...), but then again, thanks a lot, that s going on very well. Cheers everyone for the help

Replies are listed 'Best First'.
Re^3: XML::LibXML- Escape Empty Tags
by Your Mother (Archbishop) on Jul 31, 2009 at 17:31 UTC

    The serialize is there to uncomment if you want it to dump the doc to check. And you're right, doing the file directly (no filehandle) is probably faster. The *DATA handle is just easy to test/demo because it lets you put the data into the test script. Good luck. It is worth the effort to continue to pick up some Perl. It's not that hard, you'll get great help here and on many lists, and it can boost productivity in a menagerie of tasks.

Re^3: XML::LibXML- Escape Empty Tags
by Anonymous Monk on Jul 31, 2009 at 09:18 UTC
    It is a comment, it does nothing :D