Thread Problem beim auslesen einer XML-Datei mit XML-Twig (3 answers)
Opened by nyjo at 2007-10-24 12:37

nyjo
 2007-10-25 12:58
#101310 #101310
User since
2005-01-11
17 Artikel
BenutzerIn
[Homepage] [default_avatar]
Die interne Struktur von TWIG sieht wie folgt aus:

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
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

View full thread Problem beim auslesen einer XML-Datei mit XML-Twig