XML::Easy(3pm) | User Contributed Perl Documentation | XML::Easy(3pm) |
XML::Easy - XML processing with a clean interface
use XML::Easy::NodeBasics qw(xml_element xml_e_attribute); use XML::Easy::Text qw(xml10_read_document xml10_write_document); $element = xml_element("a", { href => "there" }, "there"); $element = xml10_read_document('<a href="there">there</a>'); $href = xml_e_attribute($element, "href"); $text = xml10_write_document($element); # see specific modules for many more functions
XML::Easy is a collection of modules relating to the processing, parsing, and serialisation of XML data. It is oriented towards the use of XML to represent data for interchange purposes, rather than the use of XML as markup of principally textual data. It does not perform any schema processing, and does not interpret DTDs or any other kind of schema. It adheres strictly to the XML specification, in all its awkward details, except for the aforementioned DTDs.
XML::Easy strictly separates the in-program manipulation of XML data from the processing of the textual form of XML. This shields the XML user from the inconvenient and obscure aspects of XML syntax. XML data nodes are mainly processed in a clean functional style, using the XML::Easy::NodeBasics module. In the (very likely) event that an application requires some more purpose-specific XML data processing facilities, they are readily built on top of XML::Easy::NodeBasics, retaining the abstraction from textual XML.
When XML must be handled in textual form, for input and output, the XML::Easy::Text module supplies a parser and a serialiser. The interfaces here, too, are functional in nature.
There are other modules for some ancillary aspects of XML processing.
The modules in the XML::Easy distribution are:
Other CPAN distributions that work with XML::Easy are:
XML::Easy::Classify, XML::Easy::NodeBasics, XML::Easy::Syntax, XML::Easy::Text, <http://www.w3.org/TR/REC-xml/>
Andrew Main (Zefram) <zefram@fysh.org>
Copyright (C) 2008, 2009 PhotoBox Ltd
Copyright (C) 2009, 2010, 2011, 2017 Andrew Main (Zefram) <zefram@fysh.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2018-11-02 | perl v5.28.0 |