XML::RSS::LibXML::MagicElement man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

XML::RSS::LibXML::MagiUsermContributed Perl DXML::RSS::LibXML::MagicElement(3)

NAME
       XML::RSS::LibXML::MagicElement - Represent A Non-Trivial RSS Element

SYNOPSIS
	 us XML::RS::LibXML::MagicElement;
	 my $xml = XML::RSS::LibXML::MagicElement->new(
	   content => $textContent,
	   attributes => \@attributes
	 );

DESCRIPTION
       This module is a handy object that allows users to access non-trivial
       RSS elements in XML::RSS style. For example, suppose you have an RSS
       feed with an element like the following:

	 <channel>
	   <title>Example</title>
	   <tag attr1="foo" attr2="bar">baz</tag>
	   ...
	 </channel>

       While it is simple to access the title element like this:

	 $rss->{channel}->{title};

       It was slightly non-trivial for the second tag. With this module, <tag>
       is parsed as a XML::RSS::LibXML::MagicElement object and then you can
       access all the elements like so:

	 $rss->{channel}->{tag};  # "baz"
	 $rss->{channel}->{tag}->{attr1}; # "foo"
	 $rss->{channel}->{tag}->{attr2}; # "bar"

METHODS
   new
       Create a new MagicElement object.

   attributes
       Returns the list of attributes associated with this element

   toString
       Returns the string representation of this object.  By default we use
       the "text content" of the found tag, but for XML::RSS compatibility, we
       use the concatenation of the attributes if no content is found.

AUTHOR
       Copyright 2005 Daisuke Maki <dmaki@cpan.org>. All rights reserved.

       Development partially funded by Brazil, Ltd. <http://b.razil.jp>

perl v5.14.1			  2011-02-02 XML::RSS::LibXML::MagicElement(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net