++ed by:
ZMUGHAL

1 PAUSE user

Kurt Stephens

NAME

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

SYNOPSIS

  use UMMF::Import::XMI;
  my $fh = IO::File->new("< $some_xmi_file");
  my $factory = UMMF::Boot::MetaModel->factory; # Or UMMF::UML_1_5
  my $importer = UMMF::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@users.sourceforge.net 2003/04/19

SEE ALSO

XML::Import

VERSION

$Revision: 1.15 $

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.