NAME
Quiq::Xml - Allgemeine XML-Operationen
BASE CLASS
METHODS
Klassenmethoden
print() - Formatiere XML
Synopsis
$xmlFormatted = $this->print($xml);
Returns
XML als formatierte Zeichenkette
Description
Liefere XML-Code $xml als formtierte Zeichenkette mit Einrückung.
Example
say Quiq::Xml->print($xml);
xmlToTree() - Wandele XML in Baum
Synopsis
$tree = $this->xmlToTree($xml,%opt);
$tree = $this->xmlToTree($file,%opt);
Arguments
Options
- -xsdDir => $xsdDir (Default: $ENV{'XSD_DIR'} // '.')
-
]: Verzeichnis mit XML Schema Definitionsdateien (.xsd).
Returns
(Perl Datenstruktur) Baum
Description
Wandele den XML Code $xml in eine hierarchische Perl-Datenstruktur (Baum) und liefere eine Referenz auf diese Struktur zurück.
Example
$ perl -MQuiq::Xml -E 'Quiq::Xml->xmlToTree("02-taxifahrt-orig.xml",-xsdDir=>"~/dat/zugferd")'
VERSION
1.224
AUTHOR
Frank Seitz, http://fseitz.de/
COPYRIGHT
Copyright (C) 2025 Frank Seitz
LICENSE
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.