Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.475.877 Times

XML::SimpleObject::LibXML 0.60

  Date Added: August 19, 2010  |  Visits: 701

XML::SimpleObject::LibXML

Report Broken Link
Printer Friendly Version


Product Homepage
Download (94 downloads)

XML::SimpleObject::LibXML is a Perl extension allowing a simple(r) object representation of an XML::LibXML DOM object. SYNOPSIS use XML::SimpleObject::LibXML; # Construct with the key/value pairs as argument; this will create its # own XML::LibXML object. my $xmlobj = new XML::SimpleObject::LibXML(XML => $XML); my $xmlobj = new XML::SimpleObject::LibXML(file => "./listing.xml"); my $xmlobj = new XML::SimpleObject::LibXML(); # empty DOM # ... or construct with the parsed tree as the only argument, having to # create the XML::LibXML object separately. my $parser = new XML::LibXML; my $dom = $parser->parse_file($file); my $xmlobj = new XML::SimpleObject::LibXML ($dom); my $filesobj = $xmlobj->child("files")->child("file"); # read values $filesobj->name; $filesobj->value; $filesobj->attribute("type"); %attributes = $filesobj->attributes; @children = $filesobj->children; @some_children = $filesobj->children("some"); @children_names = $filesobj->children_names; # set values $filesobj->name("Files"); # set name $filesobj->value("test"); # set text value $filesobj->attribute("type", "bin"); # set existing attributes value # add/delete nodes $filesobj->add_child ("owner" => "me"); # add new element $filesobj->add_attribute ("size" => "4"); # add new attribute $filesobj->delete; # unbinds node from parent # document processing $xmlobj->replace_names_values(xpath => "/files/file[0]/title", value => "places.txt", name => "newtitle"); $xmlobj->delete_nodes(xpath => "/files/file/size"); # output $xmlobj->output_xml; $xmlobj->output_xml_file("./newfile.xml"); This is a short and simple class allowing simple object access to a parsed XML::LibXML tree, with methods for fetching children and attributes in as clean a manner as possible. My apologies for further polluting the XML:: space; this is a small and quick module, with easy and compact usage. Some will rightfully question placing another interface over the DOM methods provided by XML::LibXML, but my experience is that people appreciate the total simplicity provided by this module, despite its limitations. These limitations include a minor loss of speed compared to the DOM, loss of control over node types, and protection (aka lack of knowledge) about the DOM. I encourage those who want more control and understanding over the DOM to study XML::LibXML; this modules source can be instructive, too..

Requirements: No special requirements
Platforms: Linux
Keyword: Children Dom Libraries Libxml Libxml Dom New Object Programming Simple Simpleobject Value Xml Xmlsimpleobjectlibxml
Users rating: 0/10

License: Freeware Size: 8.19 KB
XML::SIMPLEOBJECT::LIBXML RELATED
Modules  -  DOM2ET 1.0
This script contains a function named DOM2ET  which converts a DOM node object of type element to an ElementTree Element.
 
Libraries  -  XML::Filter::DOMFilter::LibXML 0.02
XML::Filter::DOMFilter::LibXML is a SAX Filter allowing DOM processing of selected subtrees. SYNOPSIS use XML::LibXML; use XML::Filter::DOMFilter::LibXML; my $filter = XML::Filter::DOMFilter::LibXML->new( Handler => $handler, XPathContext...
4.1 KB  
Libraries  -  SVG::DOM 2.33
SVG::DOM is a Perl library with DOM (Document Object Model) methods for SVG objects. SVG::DOM provides a selection of methods for accessing and manipulating SVG elements through DOM-like methods such as getElements, getChildren, getNextSibling...
51.2 KB  
Libraries  -  XML::LibXML::Parser 1.63
XML::LibXML::Parser is a Perl module to parse XML Data with XML::LibXML. SYNOPSIS $parser = XML::LibXML->new(); $doc = $parser->parse_file( $xmlfilename ); $doc = $parser->parse_fh( $io_fh ); $doc = $parser->parse_string( $xmlstring); $doc...
256 KB  
Libraries  -  XML::DOM::Lite 0.10
XML::DOM::Lite is a Lite Pure Perl XML DOM Parser Kit. SYNOPSIS # Parser use XML::DOM::Lite qw(Parser :constants); $parser = Parser->new( %options ); $doc = Parser->parse($xmlstr); $doc = Parser->parseFile(/path/to/file.xml); # strip...
30.72 KB  
Libraries  -  XML::LibXML::Node 1.61003
XML::LibXML::Node is an abstract base class of XML::LibXML nodes. SYNOPSIS $name = $node->nodeName; $node->setNodeName( $newName ); $bool = $node->isSameNode( $other_node ); $bool = $node->isEqual( $other_node ); $content =...
256 KB  
Libraries  -  XML::DOM::XMLDecl 1.44
XML::DOM::XMLDecl is a XML declaration in XML::DOM. XML::DOM::XMLDecl extends XML::DOM::Node, but is not part of the DOM Level 1 specification. It contains the XML declaration, e.g. ...
112.64 KB  
Libraries  -  XML::SimpleObject 0.53
XML::SimpleObject is a Perl extension allowing a simple object representation of a parsed XML::Parser tree. SYNOPSIS use XML::SimpleObject; # Construct with the key/value pairs as argument; this will create its # own XML::Parser object. my...
11.26 KB  
Development Tools  -  What's New for Object-Oriented Programming in MATLAB Webinar - Code Examples 1.0
These are the code examples used in the "What's New for Object-Oriented Programming in MATLABdlT«" webinar, which described the new object oriented features in Release 2008a.To use the code, add the top folder to your path. See the test* M-files...
112.64 KB  
Code Management Tools  -  Virgil B-03
Virgil projetc is an new, object-oriented, light-weight programming language that is designed for building software for resource-constrained embedded systems at the lowest level. Microcontroller programmers can now develop complete software...
583.68 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB