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 30.048.710 Times

XML::DOM::Lite 0.10

  Date Added: May 13, 2010  |  Visits: 832

XML::DOM::Lite

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 downloads)

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 whitespace (can be about 30% faster) $doc = Parser->parse($xml, whitespace => strip); # All Nodes $copy = $node->cloneNode($deep); $nodeType = $node->nodeType; $parent = $node->parentNode; $name = $node->nodeName; $xmlstr = $node->xml; $owner = $node->ownerDocument; # Element Nodes $first = $node->firstChild; $last = $node->lastChild; $tag = $node->tagName; $prev = $node->nextSibling; $next = $node->previousSibling; $node->setAttribute("foo", $bar); $foo = $node->getAttribute("foo"); foreach my $attr (@{$node->attributes}) { # attributes as nodelist # ... do stuff } $node->attributes->{foo} = "bar"; # or as hashref (overload) $liveNodeList = $node->getElementsByTagName("child"); # deep $node->insertBefore($newchild, $refchild); $node->replaceChild($newchild, $refchild); # Text Nodes $nodeValue = $node->nodeValue; $node->nodeValue("new text value"); # Processing Instruction Nodes # CDATA Nodes # Comments $data = $node->nodeValue; # NodeList $item = $nodeList->item(42); $index = $nodeList->nodeIndex($node); $nlist->insertNode($newNode, $index); $removed = $nlist->removeNode($node); $length = $nlist->length; # OR scalar(@$nodeList) # NodeIterator and NodeFilter use XML::DOM::Lite qw(NodeIterator :constants); $niter = NodeIterator->new($rootnode, SHOW_ELEMENT, { acceptNode => sub { my $n = shift; if ($n->tagName eq wantme) { return FILTER_ACCEPT; } elsif ($n->tagName eq skipme) { return FILTER_SKIP; } else { return FILTER_REJECT; } } ); while (my $n = $niter->nextNode) { # do stuff } # XSLT use XML::DOM::Lite qw(Parser XSLT); $parser = Parser->new( whitespace => strip ); $xsldoc = $parser->parse($xsl); $xmldoc = $parser->parse($xml); $output = XSLT->process($xmldoc, $xsldoc); # XPath use XML::DOM::Lite qw(XPath); $result = XPath->evaluate(/path/to/*[@attr="value"], $contextNode); # Document $rootnode = $doc->documentElement; $nodeWithId = $doc->getElementById("my_node_id"); $textnode = $doc->createTextNode("some text string"); $element = $doc->createElement("myTagName"); $docfrag = $doc->createDocumentFragment(); $xmlstr = $doc->xml; $nlist = $doc->selectNodes(/xpath/expression); $node = $doc->selectSingleNode(/xpath/expression); # Serializer use XML::DOM::Lite qw(Serializer); $serializer = Serializer->new; $xmlout = $serializer->serializeToString($node);.

Requirements: No special requirements
Platforms: Linux
Keyword: Filter Foo New Node Nodeiterator Nodes Parser Perl Xml Dom Perl Xml Dom Parser Qw Xml Dom Xml Dom Parser Xmldomlite Xpath Xslt
Users rating: 0/10

License: Freeware Size: 30.72 KB
XML::DOM::LITE RELATED
Libraries  -  XML::Parser::PerlSAX 0.08
XML::Parser::PerlSAX is a Perl SAX parser using XML::Parser. SYNOPSIS use XML::Parser::PerlSAX; $parser = XML::Parser::PerlSAX->new( [OPTIONS] ); $result = $parser->parse( [OPTIONS] ); $result = $parser->parse($string);...
64.51 KB  
Libraries  -  XML::Grove 0.46 Alpha
XML::Grove is a Perl module with Perl-style XML objects. SYNOPSIS use XML::Grove; # Basic parsing and grove building use XML::Grove::Builder; use XML::Parser::PerlSAX; $grove_builder = XML::Grove::Builder->new; $parser =...
27.65 KB  
Libraries  -  Syntax::Highlight::Perl 1.0
Syntax::Highlight::Perl is a Perl module that can highlight Perl Syntactical Structures. SYNOPSIS # simple procedural use Syntax::Highlight::Perl :BASIC; # or :FULL print format_string($my_string); # OO use Syntax::Highlight::Perl; my...
33.79 KB  
Libraries  -  Regexp::Parser::Handlers 0.20
Regexp::Parser::Handlers is a Perl module with handlers for Perl 5 regexes. This module holds the init() method for the Regexp::Parser class, which installs all the handlers for standard Perl 5 regexes. This documentation contains a sub-classing...
40.96 KB  
Libraries  -  Class::XML 0.06
Class::XML is a Perl module for simple XML Abstraction. SYNOPSIS package Foo; use base qw/Class::XML/; __PACKAGE__->has_attributes(qw/length colour/); __PACKAGE__->has_child(bar => Bar); package Bar; use base qw/Class::XML/;...
18.43 KB  
Modules  -  Editor Views 6.x-1.0
The Editor Views module defines a new filter for views - Node access: Edit / Delete.Add the filter to a view, and you are then able to display nodes only if user has view, edit or delete access.It also defines a default view which will list all...
10 KB  
Libraries  -  RDFStore::Parser::SiRPAC 0.50
RDFStore::Parser::SiRPAC is a Perl module that implements a streaming RDF Parser as a direct implementation of XML::Parser::Expat. SYNOPSIS use RDFStore::Parser::SiRPAC; use RDFStore::NodeFactory; my $p=new RDFStore::Parser::SiRPAC(...
481.28 KB  
Libraries  -  Rsync::Config::Parser 0.3.1
Rsync::Config::Parser is a simple Perl module for Rsync configuration parser. SYNOPSIS use Rsync::Config::Parser; use Rsync::Config; sub main { my $parser = new Rsync::Config::Parser(); my $conf = $parser->parse(/etc/rsyncd.conf); }...
22.53 KB  
Libraries  -  PXR::Parser 0.1.5
PXR::Parser is a Pure Perl SAX XML Push Parser. SYNOPSIS use PXR::Parser; my $parser = PXR::Parser->new( Handlers => { startDocument => &start_doc, endDocument => &end_doc, startElement => &start_element, endElement => &end_element,...
16.38 KB  
Libraries  -  SVG::Parser 1.01
SVG::Parser is a Perl module with XML Parser for SVG documents. SYNOPSIS #!/usr/bin/perl -w use strict; use SVG::Parser; die "Usage: $0 n" unless @ARGV; my $xml; { local $/=undef; $xml= ; } my $parser=new SVG::Parser(-debug =>...
14.34 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  -  wolfSSL 3.12.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...
2.73 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