Thread Xml Die Werte einzeln auslesen (14 answers)
Opened by Arenas at 2015-06-14 11:26

Arenas
 2015-06-14 11:26
#181329 #181329
User since
2015-06-14
4 Artikel
BenutzerIn
[default_avatar]
Hallo,

Ich komme nicht weiter.
Das sind meine Ersten Schritte:

Danke für Ihre Hilfe!

@r

Code: (dl )
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
#!perl

use strict;
use warnings;
use CGI;

use XML::Twig::XPath;
my $t= XML::Twig->new(pretty_print => 'indented',
twig_handlers => {

my $Xeu4a = $t -> get_xpath ('find/find/work[@root='a']');
my $Xeu4b = $t -> get_xpath ('find/find/work[@root='b']');
my $Xeu4c = $t -> get_xpath ('find/find/work[@root='c']');
my $Xeu4d = $t -> get_xpath ('find/find/work[@root='d']');
my $Xeu4e = $t -> get_xpath ('find/find/work[@root='e']');
}

$Xeu4a =~ s/(\d)(?=(\d{3})+(?!\d))/$1 /g;
print $Xeu4a->text,"\n",

$Xeu4b =~ s/(\d)(?=(\d{3})+(?!\d))/$1 /g;
print $Xeu4b->text,"\n",

);

$t->parseurl('http://arenas.pagesperso-orange.fr/divers/find.xml');
flush($X*);

Last edited: 2015-06-14 11:27:26 +0200 (CEST)

View full thread Xml Die Werte einzeln auslesen