PRANG::XMLSchema::Whatever - node type for nested anything
package My::XML::Element::Type; use Moose; use PRANG::Graph; has 'error_fragment' => is => "rw", isa => "PRANG::XMLSchema::Whatever", ;
Some schema allow sections of responses to be schema-free; typically this is used for error responses which are allowed to include the errant section of XML.
Fortunately, PRANG is flexible enough that this is quite easy to do. The result of the operation is a nested set of PRANG::XMLSchema::Whatever objects, which have two properties contents and attributes, which store the sub-elements and attributes of the element at that point. There is also the attribute nodenames which stores the node names of nodes. Once it is supported, there will also be an attribute indicating the XML namespaces of attributes and elements (currently they will not round-trip successfully).
contents
attributes
nodenames
This API is somewhat experimental, and may be broken down into various versions of 'whatever' - see the source for more.
PRANG, PRANG::Graph::Meta::Attr, PRANG::Graph::Meta::Element
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.
To install PRANG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PRANG
CPAN shell
perl -MCPAN -e shell install PRANG
For more information on module installation, please visit the detailed CPAN module installation guide.