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

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

Serving Software Downloads in 976 Categories, Downloaded 29.543.525 Times

XML::SimpleObject::LibXML 0.60

  Date Added: August 19, 2010  |  Visits: 487

XML::SimpleObject::LibXML

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 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
USER REVIEWS
More Reviews or Write Review


XML::SIMPLEOBJECT::LIBXML RELATED
Libraries  -  Template::Plugin::XML::DOM 2.16
Template::Plugin::XML::DOM is a plugin interface to XML::DOM. SYNOPSIS # load plugin [% USE dom = XML.DOM %] # also provide XML::Parser options [% USE dom = XML.DOM(ProtocolEncoding = ISO-8859-1) %] # parse an XML file [% doc =...
26.62 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::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  
Libraries  -  XML::DOM::Lite::XPath 0.15
XML::DOM::Lite::XPath is a Perl module for XPath support for XML::DOM::Lite. SYNOPSIS # XPath use XML::DOM::Lite qw(XPath); $result = XPath->evaluate(/path/to/*[@attr="value"], $contextNode); This XPath library is fairly complete - there...
31.74 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  
Libraries  -  PostScript::Graph::Style 1.02
SYNOPSIS Simplest Each time a new object is created the default style will be slightly different. use PostScript::File; use PostScript::Graph::Style; my $file = new PostScript::File(); my $seq = new PostScript::Graph::Sequence(); while...
55.3 KB  
Libraries  -  XML::EasySQL::XMLobj::Node 1.2
XML::EasySQL::XMLobj::Node is a Perl module that contains a Node interface. Derived from a fork of Robert Hansons killer XML::EasyOBJ module, which offers Easy XML object navigation. METHODS makeNewNode( NEW_TAG ) Append a new element node...
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  
Programming  -  x10 0.3.2
X10 project is a new object-oriented, type-safe programming language for programming the next generation of high performance systems. X10 is designed and developed by IBM. While developed in close contact with the designers of X10 at IBM there...
8.1 MB  
Libraries  -  Set::Infinite 0.61
Set::Infinite Perl module contains sets of intervals. SYNOPSIS use Set::Infinite; $set = Set::Infinite->new(1,2); # [1..2] print $set->union(5,6); # [1..2],[5..6] Set::Infinite is a Set Theory module for infinite sets. A set is a...
49.15 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB