NAME

Apache2::ASP::DOM::Node - A DOM Node for server-side ASP DOM

EXPERIMENTAL STATUS

NOTE: The entire DOM functionality for Apache2::ASP is still under heavy development and is subject to change in dramatic ways without warning.

DO NOT build anything that involves server-side DOM until it has matured.

SYNOPSIS

foreach my $node ( $Request->Document->documentElement->childNodes )
{
  print $node->tagName;
  print $node->innerHTML;
  $node->parentNode->childNodes;
  $node->childNodes;
  $node->appendChild( ... );
  my $otherNode = $node->getElementById("some-id");
  
  my @divs = $node->getElementsByTagName("div");
}# end foreach()

DESCRIPTION

PUBLIC PROPERTIES

tagName

Returns the tagName - i.e. "b" or "div" or "hr" or "My:Tag"

innerHTML

Returns the contents of the tag.

parentNode

returns undef if there is no parentNode, or the Node that the current Node is a child of.

childNodes

Returns a list of all children of the current node.

PUBLIC METHODS

appendChild( $node )

Adds the supplied node to the childNodes array.

getElementById( $id )

Searches the current node (and all childNodes, recursively) for an element by that id.

getElementsByTagname( $tagName )

Searches the current node (and all childNodes, recursively) for all elements by that tagName.

BUGS

It's possible that some bugs have found their way into this release.

Use RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=Apache2-ASP to submit bug reports.

HOMEPAGE

Please visit the Apache2::ASP homepage at http://www.devstack.com/ to see examples of Apache2::ASP in action.

AUTHOR

John Drago mailto:jdrago_999@yahoo.com

COPYRIGHT AND LICENSE

Copyright 2007 John Drago, All rights reserved.

This software is free software. It may be used and distributed under the same terms as Perl itself.