Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
XML::TinyXML::SelectorUser Contributed Perl DocumentaXML::TinyXML::Selector(3)

NAME
       XML::TinyXML::Selector -	Tinyxml	Selector base class

SYNOPSIS
	 use XML::TinyXML;
	 use XML::TinyXML::Selector;

	 # first obtain	an xml context:
	 $xml =	XML::TinyXML->new("rootnode", param => "somevalue", attrs => { attr1 =>	"v1", attr2 => "v2" });
	 $selector = XML::TinyXML::Selector->new($xml, "XPath"); # create an xpath selector;

	 my @attributes	= $selector->select("attribute::*");
	 or
	 my $attr2 = $selector->select("attribute::attr2");

	 # Check XML::TinyXML::Selector::XPath documentation for more xpath-specific examples

DESCRIPTION
       Selector	base class

INSTANCE VARIABLES
METHODS
       o   new ($xml, $type, %args)

	   Creates a new XML::TinyXML::Selector::$type object.

	   $xml	must be	a valid	XML::TinyXML instance $type must be a known
	   selector $type %args	will be	passed to the specific selector
	   initializer
		 (for instance to XML::TinyXML::Selector::XPath
		  if using the xpath selector)

	   Returns a valid XML::TinyXML::Node object Returns undef is $type is
	   not known or	if $xml	is not a valid instance

SEE ALSO
	   XML::TinyXML

AUTHOR
       xant, <xant@cpan.org>

COPYRIGHT AND LICENSE
       Copyright (C) 2008-2010 by xant

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself, either Perl	version	5.8.8 or, at
       your option, any	later version of Perl 5	you may	have available.

perl v5.32.0			  2013-09-16	     XML::TinyXML::Selector(3)

NAME | SYNOPSIS | DESCRIPTION | INSTANCE VARIABLES | METHODS | SEE ALSO | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=XML::TinyXML::Selector&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help