6 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
<adresse>
<contact:type>Firma</contact:type>
<contact:name>Supidipi GmbH</contact:name>
<contact:postal>
<contact:address>zuhausestrasse 1</contact:address>
<contact:postalCode>12345</contact:postalCode>
<contact:city>Bad Meingarten</contact:city>
<contact:countryCode>DE</contact:countryCode>
</contact:postal>
<contact:phone>+49 12345</contact:phone>
<contact:fax>+49 23456</contact:fax>
<contact:email>info@example.com</contact:email>
</adresse>
1
2
3
4
5
6
7
8
$ xmllint -
-:2: namespace error : Namespace prefix contact on type is not defined
<contact:type>Firma</contact:type>
^
-:3: namespace error : Namespace prefix contact on name is not defined
<contact:name>Supidipi GmbH</contact:name>
^
...
1
2
3
foreach my $contacts ($tree->find_by_tag_name('contact'){
my $name = $contacts->find_by_tag_name('contact:name')->as_text;
}
$contacts->find_by_tag_name('contact:fax');
6 Einträge, 1 Seite |