dschinn1001 has asked for the wisdom of the Perl Monks concerning the following question:
Hi dear monks !
am a bit dizzled by code-world of perl (after scripting
html ... ) now want to convert whole HTML-files
to xml-files with perl-module HTML::Tiny and
Have read the explanations in HTML::Tiny (short doc there)
I dont understand quite, what do I have to type with
command perl and module HTML::Tiny for to convert now
test01.html to test01.xml ? thx for answer and no
offense for somewhat newbie question of me.
So have understood by now, that to install cpan (as sudo) and to install HTML::Tiny (and I did install XML::Simple ).
Now I only need a converter for this - well then I found one at public IBM ...
here (modified by myself, but it is not correct):
HTMLin should be substituted by 'test001.html' ???
problem is this skript cannot find 'HTMLin'
There is only file test001.html.
What should I write now ?
thx very much !
not to forget here the link of IntelligentBigMamah !#!/usr/bin/perl -w use strict; use HTML::Tiny; use Data::Dumper; my $Tiny = HTML::Tiny->new(); my $data = $Tiny->HTMLin('test001.xml'); # DEBUG print Dumper($data) . "\n"; # END
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: convert whole html-files to xml
by tobyink (Canon) on Sep 15, 2013 at 08:09 UTC | |
by dschinn1001 (Initiate) on Sep 15, 2013 at 09:23 UTC | |
by tobyink (Canon) on Sep 15, 2013 at 10:17 UTC | |
by dschinn1001 (Initiate) on Sep 15, 2013 at 15:54 UTC | |
by Anonymous Monk on Sep 15, 2013 at 21:28 UTC | |
| |
|
Re: convert whole html-files to xml
by kcott (Archbishop) on Sep 15, 2013 at 04:09 UTC | |
|
Re: convert whole html-files to xml
by Anonymous Monk on Sep 15, 2013 at 03:55 UTC | |
by CountZero (Bishop) on Sep 15, 2013 at 07:10 UTC | |
by Anonymous Monk on Sep 15, 2013 at 07:33 UTC |