NAME

Document::OOXML::PartParser - OOXML document part parser

VERSION

version 0.181410

SYNOPSIS

my $doc = Document::OOXML::PartParser->parse_part(
    part_name    => '/word/footer1.xml',
    content_type => 'application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml',
    content      => '<?xml version="1.0"?> ...',
    is_strict    => 1,
);

DESCRIPTION

This module provides one method that creates a new Document::OOXML::Part of the right kind (WordprocessingML, etc.), given a content-type and file contents.

METHODS

parse_part

Parse a part of an OOXML document, and return a Document::OOXML::Part for it.

  • part_name

    The name of the part (in the zip file that is the "package")

  • content_type

    Content-type of this part. Used to determine the class to use to represent it.

  • contents

    Contents of the part.

  • is_strict

    True if the file looks like it's using the "strict" namespaces/types.

SEE ALSO

AUTHOR

Martijn van de Streek <martijn@vandestreek.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Martijn van de Streek.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.