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

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.

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()


Returns the tagName - i.e. "b" or "div" or "hr" or "My:Tag"
Returns the contents of the tag.
returns undef if there is no parentNode, or the Node that the current Node is a child of.
Returns a list of all children of the current node.

Adds the supplied node to the childNodes array.
Searches the current node (and all childNodes, recursively) for an element by that id.
Searches the current node (and all childNodes, recursively) for all elements by that tagName.

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.

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

John Drago mailto:jdrago_999@yahoo.com

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.