Quiq::Xml::LibXml - Funktionale Erweiterungen von XML::LibXML
XML::LibXML
Dieses Modul lädt XML::LibXML und erweitert dessen Klassen um zusätzliche Funktionalität.
$node = $doc->lookup($xpath);
Knoten
$str = $doc->toFormattedString;
Formatiertes XML (UTF-8 encoded String)
Liefere das XML des Dokumentes in formatierter Darstellung. Im Unterschied zur Methode $doc->toString()
werden zunächst alle leeren Textknoten aus dem Dokument entfernt (da bei "mixed content" die Methode toString() keine Formatierung vornimmt)
wird der String UTF-8 encoded geliefert (was die Methode toString() des Dokuments - im Gegensatz zu anderen Knoten - nicht tut)
$nod->removeNode;
nichts
Entferne den Knoten aus dem Dokument.
Dies ist ein Alias für die Methode $nod->unbindNode(), deren Name ein wenig inkonsequent ist in Bezug auf $nod->removeChild(), $nod->removeChildNodes().
1.152
Frank Seitz, http://fseitz.de/
Copyright (C) 2019 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Quiq, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quiq
CPAN shell
perl -MCPAN -e shell install Quiq
For more information on module installation, please visit the detailed CPAN module installation guide.