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
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).
This API is somewhat experimental, and may be broken down into various versions of 'whatever' - see the source for more.
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.