manakai

Message::DOM::NodeList

DOM NodeList interface

DESCRIPTION

The Message::DOM::NodeList implements the DOM NodeList interface.

METHODS

The NodeList object has following methods:

$length = scalar @$nodelist
$length = $nodelist->length

Return the number of the items in the list. [DOM] [DOMPERL]

$item = $nodelist->[$index]
$item = $nodelist->item ($index)

Return an item in the list. [DOM] [DOMPERL]

$arrayref = $nodelist->to_a

Return an array reference containing the items in the list. [DOMPERL]

($item0, $item1, ...) = $nodelist->to_list

Return the items in the list as a Perl list. [DOMPERL]

$boolean = $nodelist->manakai_read_only

Return whether the list is read-only or not. [MANAKAI]

@$nodelist = ()

Remove all items from the list. This operation is not supported for read-only lists. [DOMPERL]

SPECIFICATIONS

[DOM]

DOM <http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#interface-nodelist>.

[MANAKAI]

manakai DOM Extensions <https://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai%20DOM%20Extensions>.

[DOMPERL]

manakai's DOM Perl Binding <https://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai's%20DOM%20Perl%20Binding>.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2007-2012 Wakaba <wakaba@suikawiki.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.