Eric Wilhelm > XML-Bits-v0.0.1 > XML::Bits

Download:
XML-Bits-v0.0.1.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: v0.0.1   Source  

NAME ^

XML::Bits - a tree of XML nodes

SYNOPSIS ^

  use XML::Bits;

  my $div = XML::Bits->new(div =>);
  $div->create_child(div =>)->create_child(div =>);

  print $div, "\n";

new

  my $node = XML::Bits->new($tag => [%attributes], @children);

add_child

Adds a child, regardless of the child's previous parenthood.

  $node->add_child($child);

NOTE: there's some questionable issues about the tree parentage and rerooting here. Beware of bugs if you move elements around between trees. ALSO NOTE: this API might change such that it is required to use a different method for this sort of thing.

is_text

Returns true if this is a text node.

  $node->is_text;

stringify

Stringification (and operator overloading support.)

  my $string = $node->stringify;

T

A shortcut tag constructor.

  T{tag => [%atts], @content};

AUTHOR ^

Eric Wilhelm @ <ewilhelm at cpan dot org>

http://scratchcomputing.com/

BUGS ^

If you found this module on CPAN, please report any bugs or feature requests through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

If you pulled this development version from my /svn/, please contact me directly.

COPYRIGHT ^

Copyright (C) 2009 Eric L. Wilhelm, All Rights Reserved.

NO WARRANTY ^

Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.

LICENSE ^

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

syntax highlighting: