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


Manual Reference Pages  -  HTML::DOM::NODELIST (3)

.ds Aq ’

NAME

HTML::DOM::NodeList - Simple node list class for HTML::DOM

CONTENTS

VERSION

Version 0.056

SYNOPSIS



  use HTML::DOM;
  $doc = HTML::DOM->new;

  $list = $doc->body->childNodes; # returns an HTML::DOM::NodeList
   
  $list->[0];     # first node
  $list->item(0); # same
 
  $list->length; # same as scalar @$list



DESCRIPTION

This implements the NodeList interface as described in the W3C’s DOM standard. In addition to the methods below, you can use a node list object as an array.

This class actually only implements those node lists that are based on array references (as returned by childNodes methods). The HTML::DOM::NodeList::Magic class is used for more complex node lists that call a code ref to update themselves. This is an implementation detail though, that you shouldn’t have to worry about.

OBJECT METHODS

$list->length Returns the number of items in the array.
$list->item($index) Returns item number $index, numbered from 0. Note that you can also use $list->[$index] for short.

SEE ALSO

HTML::DOM

HTML::DOM::NodeList::Magic

HTML::DOM::Node

HTML::DOM::Collection

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


perl v5.20.3 HTML::DOM::NODELIST (3) 2016-02-28

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