GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XML::TinyXML::Selector(3) User Contributed Perl Documentation XML::TinyXML::Selector(3)

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

  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

Selector base class

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

XML::TinyXML

xant, <xant@cpan.org>

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.

2013-09-16 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.