XML::LibXML::DOM 1.58

GPL


XML::LibXML::DOM

XML::LibXML::DOM is a XML::LibXML DOM Implementation. XML::LibXML::DOM is a XML::LibXML DOM Implementation.XML::LibXML provides an lightwight interface to modify a node of the document tree generated by the XML::LibXML parser. This interface follows as far as possible the DOM Level 3 specification. Additionally to the specified functions the XML::LibXML supports some functions that are more handy to use in the perl environment.One also has to remember, that XML::LibXML is an interface to libxml2 nodes which actually reside on the C-Level of XML::LibXML. This means each node is a reference to a structure different than a perl hash or array. The only way to access these structure's values is through the DOM interface provided by XML::LibXML. This also means, that one can't simply inherit a XML::LibXML node and add new member variables as they were hash keys.The DOM interface of XML::LibXML does not intend to implement a full DOM interface as it is done by XML::GDOME and used for full featured application. Moreover, it offers an simple way to build or modify documents that are created by XML::LibXML's parser.Another target of the XML::LibXML interface is to make the interfaces of libxml2 available to the perl community. This includes also some workarounds to some features where libxml2 assumes more control over the C-Level that most perl users don't have.One of the most important parts of the XML::LibXML DOM interface is, that the interfaces try do follow the DOM Level 3 specification rather strictly. This means the interface functions are named as the DOM specification says and not what widespread Java interfaces claim to be standard. Although there are several functions that have only a singular interface that conforms to the DOM spec XML::LibXML provides an additional Java style alias interface.Also there are some function interfaces left over from early stages of XML::LibXML for compatibility reasons. These interfaces are for compatibility reasons only. They might disappear in one of the future versions of XML::LibXML, so a user is requested to switch over to the official functions.More recent versions of perl (e.g. 5.6.1 or higher) support special flags to disinguish between UTF8 and so called binary data. XML::LibXML provides for these versions functionality to make efficient use of these flags: If a document has set an encoding other than UTF8 all strings that are not already in UTF8 are implicitly encoded from the document encoding to UTF8. On output these strings are commonly returned as UTF8 unless a user does request explicitly the original (aka. document) encoding.Older version of perl (such as 5.00503 or less) do not support these flags. If XML::LibXML is build for these versions, all strings have to get encoded to UTF8 manualy before they are passed to any DOM functions.NOTE: XML::LibXML's magic encoding may not work on all plattforms. Some platforms are known to have a broken iconv(), which is partly used by libxml2. To test if your platform works correctly with your language encoding, build a simple document in the particular encoding and try to parse it with XML::LibXML. If your document gets parsed with out causing any segmentation faults, bus errors or whatever your OS throws. An example for such a test can be found in test 19encoding.t of the distribution.Namespaces and XML::LibXML's DOM implementationXML::LibXML's DOM implementation follows the DOM implementation of libxml2. This is important to know if namespaces are used. Namespaces cannot be declared on an document node. This is basicly because XPath doesn't know about document nodes. Therefore namespaces have to be declared on element nodes.This can happen explicitly by using XML::LibXML:Element's setNamespace() function or more or less implicitly by using XML::LibXML::Document's createElementNS() or createAttributeNS() function. If the a namespace is not declared on the documentElement, the namespace will be localy declared for the newly created node. In case of Attributes this may look a bit confusing, since these nodes cannot have namespace declarations itself. In this case the namespace in internally applied to the attribute and later declared on the node the attribute is appended to.

Download and use it now: XML::LibXML::DOM 1.58 free download

Add a review

Tell us your experience with XML::LibXML::DOM 1.58

Related programsOur Recommendations

Template::Provider::Unicode::Japanese

Template:: Provider:: Unicode:: Japanese is a Perl module to decode all templates by Unicode ::

Download

WolfpackSys

WolfpackSys is a software system that performs these tasks for converting large data distributed

Download

Games::Risk

Games: The risk is on a risk' classic game.SYNOPSIS use Games:: Risk; Games:: Risk-> new; POE::

Download

Mail::Toaster::Setup

Mail:: Toaster:: Setup is a Perl module with methods to configure and build all the elements of a

Download

Table wrapper base class

Table wrapper base class is a PHP class that can be used to generate HTML tables from data tables.

Download

Small Antialiased Graphics Library

SAgl is a portable small antialiased graphics library. Sagl is a portable small antialiased

Download

CGI::Application::Plugin::Authentication::Driver

CGI:: Application:: Plugin:: Authentication:: Driver is a basic module for the construction clasée

Download

Transaction::Simple

Transaction:: Simple is a Ruby library that provides active ( "live", non - backend) transactional

Download

Inline::Lua

Inline::Lua is a Perl extension for embedding Lua scripts into Perl code. Inline::Lua is a Perl

Download

CGI::Wiki::Setup::DBIxFTSMySQL

Set up FULLTEXT index for CGI:: Wiki CGI:: Wiki:: Setup:: DBIxFTSMySQL is a Perl module for

Download


Thumbnail of XML::LibXML::DOM

Rating:

3 stars

Publisher/Developer: Matt Sergeant

Release Date: Aug 10, 2012

View Program Details

Top Downloadslast week