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

XML::Mini 1.2.8

  Date Added: January 09, 2010  |  Visits: 991

XML::Mini

Report Broken Link
Printer Friendly Version


Product Homepage
Download (95 downloads)



XML::Mini is a Perl implementation of the XML::Mini XML create/parse interface. 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> XML::Mini is a set of Perl classes that allow you to access XML data and create valid XML output with a tree-based hierarchy of elements. The MiniXML API has both Perl and PHP implementations. It provides an easy, object-oriented interface for manipulating XML documents and their elements. It is currently being used to send requests and understand responses from remote servers in Perl or PHP applications. An XML::Mini based parser is now being tested within the RPC::XML framework. XML::Mini does not require any external libraries or modules and is pure Perl. If available, XML::Mini will use the Text::Balanced module in order to escape limitations of the regex-only approach (eg "cross-nested" tag parsing). The Mini.pm module includes a number of variables you may use to tweak XML::Minis behavior. These include: $XML::Mini::AutoEscapeEntities - when greater than 0, the values set for nodes are automatically escaped, thus $element->text(4 is > 3) will set the contents of the appended node to 4 is > 3. Default setting is 1. $XML::Mini::IgnoreWhitespaces - when greater than 0, extraneous whitespaces will be ignored (maily useful when parsing). Thus Hello There will be parsed as containing a text node with contents Hello There instead of Hello There . Default setting is 1. $XML::Mini::CaseSensitive - when greater than 0, element names are treated as case sensitive. Thus, $element->getElement(subelement) and $element->getElement(SubElement) will be equivalent. Defaults to 0..

Requirements: No special requirements
Platforms: Linux
Keyword: Hello There Implementation Libraries Mini Xml Name New Perl Programming Text Xml Xmlmini
Users rating: 0/10

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


XML::MINI RELATED
Development Tools  -  Mini-XML for XML Tools 1.1
Mini-XML is a small XML parsing library that you can use it to read XML and XML-like data files in your application without requiring large non-standard libraries. Mini-XML only requires an ANSI C compatible compiler (GCC works, as do most...
204.8 KB  
Utilities  -  Mini-XML 2.3
Mini-XML is a small XML parsing library that you can use to read XML and XML-like data files in your application without requiring large non-standard libraries. The project only requires an ANSI C compatible compiler (GCC works, as do most vendors...
153.6 KB  
Libraries  -  XML::Mini::Document 1.2.8
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...
34.82 KB  
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  
Libraries  -  CPAN::Mini::Extract 1.16
CPAN::Mini::Extract is a Perl module that can create CPAN::Mini mirrors with the archives extracted. SYNOPSIS # Create a CPAN extractor my $cpan = CPAN::Mini::Extract->new( remote => http://mirrors.kernel.org/cpan/, local =>...
26.62 KB  
Libraries  -  LibAxl 0.4.7
LibAxl (or just Axl) is an implementation of the XML 1.0 standard specification, developed by the ASPL people to support many of its XML software requirements. LibAxl has been implemented using ANSI C, at this moment it doesnt has any external...
614.4 KB  
Utilities  -  DomSax 1.0.0
DomSax is an implementation of a XML-parser based on the standard Document Object Model principle (and suns implementation), combining it with the flexibility and possibility of low memory consumption of the SAX-parser (also suns implementation)....
18.43 KB  
Fantasy Games  -  Crab Man Mini 1.01
Crab Man Mini is a new version of the Crab Man demo program of the DockableForm I have been working on. Here are some of the features I've put into it so far: When you open up the Crab Man it starts in the middle of the screen, to move the Crab...
100 KB  
Security Tools  -  SSTTR Java Libraries 1.0
A collection of Java libraries for XML stream and file parsing, basic crypto and other stuff I found useful to have around.
52.77 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