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

XML::EasySQL::XMLobj::Node 1.2

  Date Added: March 15, 2010  |  Visits: 906

XML::EasySQL::XMLobj::Node

Report Broken Link
Printer Friendly Version


Product Homepage
Download (87 downloads)



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 to the current node. Takes the tag name as the parameter and returns the created node as a convienence. my $p_element = $doc->body->makeNewNode(p); getString( ) Recursively extracts text from the current node and all children element nodes. Returns the extracted text as a single scalar value. _extractText( ) Utility method. Dont call this and dont overload it. setString( STRING ) Sets the text value of the specified element. This is done by first removing all text node children of the current element and then appending the supplied text as a new child element. Take this XML fragment and code for example: < p >This elment has < b >text< /b > and < i >child< /i > elements< /p > $doc->p->setString(This is the new text); This will change the fragment to this: < p >< b >text< /b >< i >child< /i >This is the new text< /p > Because the and tags are not text nodes they are left unchanged, and the new text is added at the end of the specified element. If you need more specific control on the change you should either use the getDomObj() method and use the DOM methods directly or remove all of the child nodes and rebuild the element from scratch. Also see the addString() method. addString( STRING ) Adds to the the text value of the specified element. This is done by appending the supplied text as a new child element. Take this XML fragment and code for example: < p >This elment has < b >text< /b >< /p > $doc->p->addString( and elements); This will change the fragment to this: < p >This elment has < b >text< /b > and elements< /p > getAttr( ATTR_NAME ) Returns the value of the named attribute. my $val = $doc->body->img->getAttr(src); getTagName( ) Returns the tag name of the specified element. This method is useful when you are enumerating child elements and do not know their element names. foreach my $element ( $doc->getElement() ) { print $element->getTagName(); } setAttr( ATTR_NAME, ATTR_VALUE, [ATTR_NAME, ATTR_VALUE]... ) For each name/value pair passed the attribute name and value will be set for the specified element. remAttr( ATTR_NAME ) Removes the specified attribute from the current element. remElement( TAG_NAME, INDEX ) Removes a child element of the current element. The name of the child element and the index must be supplied. An index of 0 will remove the first occurance of the named element, 1 the second, 2 the third, etc. getElement( TAG_NAME, INDEX ) Returns the node from the tag name and index. If no index is given the first child with that name is returned. Use this method when you have element names that include characters that are not legal as a perl method name. For example: < foo > < !-- root element -- > < bar > < foo-bar >test< /foo-bar > < /bar > < /foo > # "foo-bar" is not a legal method name print $doc->bar->getElement(foo-bar)->getString(); getDomObj( ) Returns the DOM object associated with the current node. This is useful when you need fine access via the DOM to perform a specific function..

Requirements: No special requirements
Platforms: Linux
Keyword: Attr Child Easysql Element Libraries Name Node Perl Module Programming Text Value Xml Xmleasysqlxmlobjnode Xmlobj
Users rating: 0/10

License: Freeware Size: 11.26 KB
USER REVIEWS
More Reviews or Write Review


XML::EASYSQL::XMLOBJ::NODE RELATED
Libraries  -  XML::Descent 0.0.4
XML::Descent is a Perl module for recursive descent XML parsing. SYNOPSIS use XML::Descent; # Create parser my $p = XML::Descent->new({ Input => $xml }); # Setup handlers $p->on(folder => sub { my ($elem, $attr) = @_; $p->on(url =>...
9.22 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  XML::Rules 0.18
XML::Rules is a Perl module that can parse XML & process tags by rules starting from leaves. SYNOPSIS use XML::Rules; $xml = ... ... ... ...
38.91 KB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
Libraries  -  XMLRPC::PurePerl 0.01
XMLRPC::PurePerl is a Perl module that implements the XML-RPC standard as defined at www.xmlrpc.com and serves as a (de)serialization engine as well as a client for such services. This module is in fairly close relation to an implementation that...
9.22 KB  
Libraries  -  Test::Unit::Runner::XML 0.1
Test::Unit::Runner::XML is a Perl module that can generate XML reports from unit test results. SYNOPSIS use Test::Unit::Runner::XML; mkdir("test_reports"); my $runner = Test::Unit::Runner::XML->new("test-reports"); $runner->start($test);...
3.07 KB  
Libraries  -  XML::All 0.02
XML::All is a Perl module that contains overloaded XML objects. SYNOPSIS use XML::All; Â my $xml = 1 2 3 >; Â print $$xml; # a print join ", ", @$xml; # 1, 2 , 3 print...
25.6 KB  
Libraries  -  Blatte 0.9.4
Blatte is a Perl module with text macro/markup/template language. SYNOPSIS use Blatte; use Blatte::Builtins; my $perl = &Blatte::Parse(...some Blatte program ...); if (defined($perl)) { my $result = eval $perl; if (defined($result)) {...
31.74 KB  
Libraries  -  XML::WBXML 0.03
XML::WBXML is a Perl module to convert between XML and WBXML using libwbxml2. SYNOPSIS use XML::WBXML; $wbxml = XML::WBXML::xml_to_wbxml($xml); $xml = XML::WBXML::wbxml_to_xml($wbxml); This module is a wrapper around Aymerick Jehannes...
52.22 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