Die interne Struktur von TWIG sieht wie folgt aus:
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
'first_child' => bless( {
'next_sibling' => bless( {
'parent' => ${$VAR1}->{'first_child'}->{'next_sibling'},
'gi' => '52',
'prev_sibling' => ${$VAR1}->{'first_child'}->{'next_sibling'}->{'first_child'},
'first_child' => bless( {
'parent' => ${$VAR1}->{'first_child'}->{'next_sibling'}->{'first_child'}->{'next_sibling'},
'gi' => '53',
'first_child' => bless( {
'parent' => ${$VAR1}->{'first_child'}->{'next_sibling'}->{'first_child'}->{'next_sibling'}->{'first_child'},
'gi' => 0,
'pcdata' => '5'
}, 'XML::Twig::Elt' ),
'att' => {
'cx:dt' => 'int'
},
'last_child' => ${$VAR1}->{'first_child'}->{'next_sibling'}->{'first_child'}->{'next_sibling'}->{'first_child'}->{'first_child'}
}, 'XML::Twig::Elt' ),
'att' => {},
'last_child' => ${$VAR1}->{'first_child'}->{'next_sibling'}->{'first_child'}->{'next_sibling'}->{'first_child'}
}, 'XML::Twig::Elt' ),
parent' => ${$VAR1}->{'first_child'}->{'next_sibling'},
'gi' => 0,
'pcdata' => '05.09.1943'
}, 'XML::Twig::Elt' ),
'att' => {
'_name' => 'Geburtsdatum'
},
'last_child' => ${$VAR1}->{'first_child'}->{'next_sibling'}->{'first_child'}->{'next_sibling'}
}, 'XML::Twig::Elt' )
Verstehe aber nicht wieso
$pers->first_child( 'geburtsdatum' )->text
05.09.19435 als Ausgabe bringt :-/
alles wird gut
---
mfg
Joachim Nyenhuis