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

XML::Mini::Document 1.2.8

  Date Added: January 08, 2010  |  Visits: 684

XML::Mini::Document

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 downloads)



XML::Mini::Document is a Perl implementation of the XML::Mini Document API. SYNOPSIS use XML::Mini::Document; use Data::Dumper; ###### PARSING XML ####### # create a new object my $xmlDoc = XML::Mini::Document->new(); # init the doc from an XML string $xmlDoc->parse($XMLString); # You may use the toHash() method to automatically # convert the XML into a hash reference my $xmlHash = $xmlDoc->toHash(); print Dumper($xmlHash); # You can also manipulate the elements like directly, like this: # Fetch the ROOT element for the document # (an instance of XML::Mini::Element) my $xmlRoot = $xmlDoc->getRoot(); # play with the element and its children # ... my $topLevelChildren = $xmlRoot->getAllChildren(); foreach my $childElement (@{$topLevelChildren}) { # ... } ###### CREATING XML ####### # Create a new document from scratch my $newDoc = XML::Mini::Document->new(); # This can be done easily by using a hash: my $h = { spy => { id => 007, type => SuperSpy, name => James Bond, email => mi5@london.uk, address => Wherever he is needed most, }, }; $newDoc->fromHash($h); # Or new XML can also be created by manipulating #elements directly: my $newDocRoot = $newDoc->getRoot(); # create the < ? xml ? > header my $xmlHeader = $newDocRoot->header(xml); # add the version $xmlHeader->attribute(version, 1.0); my $person = $newDocRoot->createChild(person); my $name = $person->createChild(name); $name->createChild(first)->text(John); $name->createChild(last)->text(Doe); my $eyes = $person->createChild(eyes); $eyes->attribute(color, blue); $eyes->attribute(number, 2); # output the document print $newDoc->toString(); This example would output : < ?xml version="1.0"?> < person> < name> < first> John < /first> < last> Doe < /last> < /name> < eyes color="blue" number="2" /> < /person> The XML::Mini::Document class is the programmers handle to XML::Mini functionality. A XML::Mini::Document instance is created in every program that uses XML::Mini. With the XML::Mini::Document object, you can access the root XML::Mini::Element, find/fetch/create elements and read in or output XML strings..

Requirements: No special requirements
Platforms: Linux
Keyword: Api Document Implementation Libraries Mini Document Api Name New Perl Programming Xml Xmlminidocument
Users rating: 0/10

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


XML::MINI::DOCUMENT RELATED
Libraries  -  XML::Mini::Element 1.2.8
XML::Mini::Element is a Perl implementation of the XML::Mini Element API. SYNOPSIS use XML::Mini::Document; my $xmlDoc = XML::Mini::Document->new(); # Fetch the ROOT element for the document # (an instance of XML::Mini::Element) my...
34.82 KB  
Libraries  -  XML::Mini::TreeComponent 1.2.8
XML::Mini::TreeComponent is a Perl implementation of the XML::Mini TreeComponent API. SYNOPSIS Dont use this class - only presents an interface for other derived classes. This class is only to be used as a base class for others. It presents...
34.82 KB  
Forms and Controls  -  qForms JavaScript API b142 1.0
qForms JavaScript API is the most complete JavaScript API for interfacing forms. The qForms API has been designed to make forms easy to work with. It simplifies tasks HTML developers normally find tricky to handle.The qForms JavaScript API (JSAPI)...
 
Utilities  -  SDOM 0.4.2
SDOM is an attempt to provide a complete implementation of the W3C Document Object Model level 3 API, including event handling, in Scheme, as an extension of the SXML API. SDOM holds to SXMLs conventions regarding the representation of...
102.4 KB  
Libraries  -  Gtk2::api 1.145
Gtk2::api is a mapping the Gtk+ C API to perl. ABSTRACT The Gtk2 module attempts to stick as close as is reasonable to the C API, to minimize the need to maintain documentation which is nearly a copy of the C API reference documentation....
655.36 KB  
Libraries  -  Business::PayPal::API 0.50
Business::PayPal::API is a PayPal API. SYNOPSIS use Business::PayPal::API qw( ExpressCheckout GetTransactionDetails ); ## certificate authentication my $pp = new Business::PayPal::API ( Username => my_api1.domain.tld, Password =>...
30.72 KB  
Audio Tools  -  Taginfo 1.2
Taginfo is a quick implementation of the taglib API for use in the music jukebox program Room Juice. Its meant to be fast, not featureful. Taginfo program reads whatever tags taglib can read, which as of this writing are ID3, Ogg, ID3v2, and FLAC....
7.17 KB  
Utilities  -  Wine 0.9.43
Wine is an Open Source implementation of the Windows API on top of X and Unix. Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of...
11.5 MB  
Desktop Utilities  -  manix 0.5
manix is a window manager which aims to provide a full MacOS 8/9 interface, including an implementation of the Carbon API. manix is using X11 as the graphical backend. The window manager is not finished but should be useable. It will be part...
18.43 KB  
Project Management  -  Document workflow management 3.0
Many enterprises decided to implement document workflow management system. Do you want to know what are the document workflow management and its functions? The document circulation is important process in every organization. Documents...
1.67 MB  
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 3.15.3
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