UMMF::UML::Import::XMI - Importer for XMI documents.
use UMMF::UML::Import::XMI; my $fh = IO::File->new("< $some_xmi_file"); my $factory = UMMF::UML::MetaModel->factory; my $importer = UMMF::UML::Import::XMI->new('factory' = { 'UML' => $factory' }); my $content = $importer->import_input($fh); my $model = grep($_->isaModel, @$content);
This package imports XMI version 1.0 and 1.2.
None exported.
Kurt Stephens, kstephens@sourceforge.net 2003/04/19
XML::Import
$Revision: 1.13 $
my $parser = new XML::DOM::Parser; my $doc = $parser->parseFile($xml_file); my $xmi = prepare_xml_dom($doc);
Prepares an XML::DOM::Document object as an UMMF::UML::XMI::Document.
To install UMMF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UMMF
CPAN shell
perl -MCPAN -e shell install UMMF
For more information on module installation, please visit the detailed CPAN module installation guide.