NAME

PRANG::Graph::Text - accept an XML TextNode

SYNOPSIS

See PRANG::Graph::Meta::Element source and PRANG::Graph::Node for examples and information.

DESCRIPTION

This graph node specifies that the XML graph at this point may contain a text node. If it doesn't, this is considered equivalent to a zero-length text node.

If the element only has only complex children, it will not have one of these objects in its graph.

Along with PRANG::Graph::Element, this graph node is the only type which may actually consume input XML nodes or emit them on output. The other node types merely change the state in the PRANG::Graph::Context object.

ATTRIBUTES

attrName

Used when emitting; specifies the method to call to retrieve the item to be output. Also used when parsing, to return the Moose attribute slot for construction.

SEE ALSO

PRANG::Graph::Meta::Class, PRANG::Graph::Meta::Element, PRANG::Graph::Context, PRANG::Graph::Node

AUTHOR AND LICENCE

Development commissioned by NZ Registry Services, and carried out by Catalyst IT - http://www.catalyst.net.nz/

Copyright 2009, 2010, NZ Registry Services. This module is licensed under the Artistic License v2.0, which permits relicensing under other Free Software licenses.