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.911 Times

XML::Mini::Document 1.2.8

  Date Added: January 08, 2010  |  Visits: 653

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