|< 1 2 >| | 12 Einträge, 2 Seiten |
1
2
3
<?xml version="1.0" encoding="iso-8859-1"?>
<entry name="button_close">Schließen</entry>
1
2
3
4
5
6
7
my $value = $node->textContent;
my $valueEnc = &HTML::Entities::encode_entities(
&XML::LibXML::encodeToUTF8(
$self->{xmldoc}->encoding,
$value
)
);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /usr/bin/perl -w
use strict;
use warnings;
use CGI;
use Data::Dumper;
use CGI::Carp qw(fatalsToBrowser);
use lib ('./perllib');
use XML::Simple;
use utf8;
my $file = './test.xml';
my $content = get_file($file);
my $html = ();
my $cgi = CGI->new();
print $cgi->header(-type => 'text/html');
my $jobs_h = XMLin($content);
print Dumper($jobs_h);
my $jobtitle = $cgi->escapeHTML($jobs_h->{content});
$jobtitle =~ s/([\x{80}-\x{FFFF}])/'&#' . ord($1) . ';'/gse;
print $jobtitle;
sub get_file{
my ($file) = @_;
my $cont = '';
{
local $/;
open(DAT,"<$file") or die $!;
$cont = <DAT>;
close DAT;
}
return $cont;
}
1
2
3
<?xml version="1.0" encoding="iso-8859-1"?>
<entry name="button_close">Schließen</entry>
|< 1 2 >| | 12 Einträge, 2 Seiten |