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

XML::Mini 1.2.8

  Date Added: January 09, 2010  |  Visits: 664

XML::Mini

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 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
XML::MINI RELATED
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::DOM::XML_Base 0.02
XML::DOM::XML_Base Perl module can apply xml:base to attribute values. SYNOPSIS use XML::DOM::XML_Base; my $parser = XML::DOM::Parser->new(); my $xml = qq( ); # build the DOM my $dom = $parser->parse( $xml ); # get some...
3.07 KB  
Libraries  -  DBIx::XMLMessage 0.05
DBIx::XMLMessage is a Perl module for XML Message exchange between DBI data sources. The package maintains simple XML templates that describe object structure. The package is capable of generating SQL statements based on these templates and...
25.6 KB  
Libraries  -  XML::Code 0.04
XML::Diff is a Perl module for XML DOM-Tree based Diff & Patch Module. SYNOPSIS my $diff = XML::Diff->new(); # to generate a diffgram of two XML files, use compare. # $old and $new can be filepaths, XML as a string, # XML::LibXML::Document...
17.41 KB  
Libraries  -  XML::Diff 0.04
XML::Diff is a Perl module for XML DOM-Tree based Diff & Patch Module. SYNOPSIS my $diff = XML::Diff->new(); # to generate a diffgram of two XML files, use compare. # $old and $new can be filepaths, XML as a string, # XML::LibXML::Document...
17.41 KB  
Libraries  -  Net::eBay 0.41
Net::eBay is a Perl Interface to XML based eBay API. SYNOPSIS This module helps user to easily execute queries against eBays XML API. Copyright Igor Chudov. ################################################## # For support, docs, info, email...
17.41 KB  
Libraries  -  MillScript-XML 0.3
MillScript-XML project is an alternative Java XML parsing library with its own custom API. The underlying tokenizer can be configured to permit non-well-formed XML. This librarys API provides both an event model and a more conventional token...
67.58 KB  
Libraries  -  Pod::XML 0.96
Pod::XML is a Perl module to convert POD to XML. SYNOPSIS use Pod::XML; my $parser = Pod::XML->new(); $parser->parse_from_file("foo.pod"); This module uses Pod::Parser to parse POD and generates XML from the resulting parse stream. It uses...
7.17 KB  
Libraries  -  XML::Validator::Schema 1.08
XML::Validator::Schema is a Perl module to validate XML against a subset of W3C XML Schema. SYNOPSIS use XML::SAX::ParserFactory; use XML::Validator::Schema; # # create a new validator object, using foo.xsd # $validator =...
53.25 KB  
Libraries  -  AnyData::Format::XML 0.10
AnyData::Format::XML is a Perl module for tiedhash and DBI access to XML. SYNOPSIS # access XML data via a multi-dimensional tied hash # see AnyData.pod for full details # use AnyData; my $table = adTie( XML, $file, $mode, $flags ); OR...
44.03 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