1Image::ExifTool::TagInfUosXeMrL(C3o)ntributed Perl DocumIemnatgaet:i:oEnxifTool::TagInfoXML(3)
2
3
4

NAME

6       Image::ExifTool::TagInfoXML - Read/write tag information XML database
7

DESCRIPTION

9       This module is used to generate an XML database from all ExifTool tag
10       information.  The XML database may then be edited and used to re-
11       generate the language modules (Image::ExifTool::Lang::*).
12

METHODS

14   Write
15       Print complete tag information database in XML format.
16
17         # save list of all tags
18         $success = Image::ExifTool::TagInfoXML::Write('dst.xml');
19
20         # list all IPTC tags to console, including Flags
21         Image::ExifTool::TagInfoXML::Write(undef, 'IPTC', Flags => 1);
22
23         # write all EXIF Camera tags to file
24         Image::ExifTool::TagInfoXML::Write($outfile, 'exif:camera');
25
26       Inputs:
27           0) [optional] Output file name, or undef for console output.
28           Output file will be overwritten if it already exists.
29
30           1) [optional] String of group names separated by colons to specify
31           the group to print.  A specific IFD may not be given as a group,
32           since EXIF tags may be written to any IFD.  Saves all groups if not
33           specified.
34
35           2) [optional] Hash of options values:
36
37               Flags   - Set to output 'flags' attribute
38               NoDesc  - Set to suppress output of descriptions
39
40       Return Value:
41           True on success.
42
43       Sample XML Output:
44
45         <?xml version='1.0' encoding='UTF-8'?>
46         <taginfo>
47
48         <table name='XMP::dc' g0='XMP' g1='XMP-dc' g2='Other'>
49          <desc lang='en'>XMP Dublin Core</desc>
50          <tag id='title' name='Title' type='lang-alt' writable='true' g2='Image'>
51           <desc lang='en'>Title</desc>
52           <desc lang='de'>Titel</desc>
53           <desc lang='fr'>Titre</desc>
54          </tag>
55          ...
56         </table>
57
58         </taginfo>
59
60       Flags (if selected and available) are formatted as a comma-separated
61       list of the following possible values:  Avoid, Binary, List, Mandatory,
62       Permanent, Protected, Unknown and Unsafe.  See the tag name
63       documentation and lib/Image/ExifTool/README for a description of these
64       flags.  For XMP List tags, the list type (Alt, Bag or Seq) is also
65       output as a flag if applicable.
66
67   BuildLangModules
68       Build all Image::ExifTool::Lang modules from an XML database file.
69
70           Image::ExifTool::TagInfoXML::BuildLangModules('src.xml');
71
72       Inputs:
73           0) XML file name
74
75       Return Value:
76           Number of modules updated, or negative on error.
77

AUTHOR

79       Copyright 2003-2011, Phil Harvey (phil at owl.phy.queensu.ca)
80
81       This library is free software; you can redistribute it and/or modify it
82       under the same terms as Perl itself.
83

SEE ALSO

85       Image::ExifTool(3pm), Image::ExifTool::TagNames(3pm)
86
87
88
89perl v5.12.4                      2011-01-03    Image::ExifTool::TagInfoXML(3)
Impressum