Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: XML::LibXML- Escape Empty Tags

by khalistoo (Initiate)
on Jul 31, 2009 at 08:46 UTC ( [id://784851]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found