Thread Attributname sprengt Formatierung (12 answers)
Opened by Commu at 2016-08-23 13:44

Linuxer
 2016-08-23 18:51
#185279 #185279
User since
2006-01-27
3870 Artikel
HausmeisterIn

user image
Nächster Punkt ;-)

Wenn Du ein XML-Tag hast, wie <foo color="blue">bar</foo> dann ist ja "color" ein Attribut von foo.

Du hast Daten der Art <attribut attributname="dokumenttyp"></attribut>, also auch Tags mit Attributen.

Warum schaltest Du dann beim Schreiben des XML die Nutzung von Attributen ab?
Du möchtest sie aber doch anscheinend haben?

Code: (dl )
1
2
3
4
5
6
    XMLout(
$xml,
KeepRoot => 1,
NoAttr => 1, ############## WARUM? Es gibt doch Attribute?
OutputFile => $xml_file,
);


PS: Ich habe die Doku nicht gelesen ;-)) Siehe CPAN:XML::Simple
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread Attributname sprengt Formatierung