XML::XForms::Generator::Model
use XML::XForms::Generator; my $model = xforms_model( { id => 'MyFirstXForms' } );
The XML::XForms::Generator::Model package is an implementation of the XForms model element. This package has a single convience function (xforms_model) that takes a parameter 'id' to uniquely identify that model element in the document. The result of calling this function is a object that has all the methods available to a XML::LibXML::Element object plus the methods listed below:
Sets the binding information of a model. This method takes a hash refernce of name => value pairs for the attributes of the model's child. The attributes are attached on the basis of their legitamacy when compared to the XForms schema. If it isn't a recognized attribute then it won't get attached. This method also takes an array of XML::LibXML capable nodes and/or text data.
Sets the instance data append of a model. This method takes a hash refernce of name => value pairs for the attributes of the model's child. The attributes are attached on the basis of their legitamacy when compared to the XForms schema. If it isn't a recognized attribute then it won't get attached. This method also takes an array of XML::LibXML capable nodes and/or text data.
Sets the extensions of a model. This method takes a hash refernce of name => value pairs for the attributes of the model's child. The attributes are attached on the basis of their legitamacy when compared to the XForms schema. If it isn't a recognized attribute then it won't get attached. This method also takes an array of XML::LibXML capable nodes and/or text data.
Sets the submission data of a model. This method takes a hash refernce of name => value pairs for the attributes of the model's child. The attributes are attached on the basis of their legitamacy when compared to the XForms schema. If it isn't a recognized attribute then it won't get attached. This method also takes an array of XML::LibXML capable nodes and/or text data.
Method that allows you to bind a control to a model's instance data. This method is not necessarily needed if you use the setInstanceData method.
Returns the binding children of a model.
Returns the instance data section associated with a model.
Returns any extension children of a model.
Returns the submitInfo data.
Method to set the instance data.
D. Hageman <dhageman@dracken.com>
XML::XForms::Generator XML::XForms::Generator::Action XML::XForms::Generator::Control XML::XForms::Generator::UserInterface XML::LibXML XML::LibXML::DOM
Copyright (c) 2002-2004 D. Hageman (Dracken Technologies).
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install XML::XForms::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::XForms::Generator
CPAN shell
perl -MCPAN -e shell install XML::XForms::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.