NAME

UMMF::UML::Import::XMI - Importer for XMI documents.

SYNOPSIS

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);

DESCRIPTION

This package imports XMI version 1.0 and 1.2.

USAGE

PATTERNS

EXPORT

None exported.

AUTHOR

Kurt Stephens, kstephens@sourceforge.net 2003/04/19

SEE ALSO

XML::Import

VERSION

$Revision: 1.13 $

METHODS

prepare_xml_dom

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.