{
    "content": [
        {
            "type": "text",
            "text": "# Image::ExifTool::TagInfoXML (perldoc)\n\n## NAME\n\nImage::ExifTool::TagInfoXML - Read/write tag information XML database\n\n## DESCRIPTION\n\nThis module is used to generate an XML database from all ExifTool tag information. The XML\ndatabase may then be edited and used to re-generate the language modules\n(Image::ExifTool::Lang::*).\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **METHODS** (2 subsections)\n- **AUTHOR**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Image::ExifTool::TagInfoXML",
        "section": "",
        "mode": "perldoc",
        "summary": "Image::ExifTool::TagInfoXML - Read/write tag information XML database",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "ExifTool",
                "section": "3pm",
                "url": "https://www.chedong.com/phpMan.php/man/ExifTool/3pm/json"
            },
            {
                "name": "TagNames",
                "section": "3pm",
                "url": "https://www.chedong.com/phpMan.php/man/TagNames/3pm/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Write",
                        "lines": 50
                    },
                    {
                        "name": "BuildLangModules",
                        "lines": 17
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Image::ExifTool::TagInfoXML - Read/write tag information XML database\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module is used to generate an XML database from all ExifTool tag information. The XML\ndatabase may then be edited and used to re-generate the language modules\n(Image::ExifTool::Lang::*).\n",
                "subsections": []
            },
            "METHODS": {
                "content": "",
                "subsections": [
                    {
                        "name": "Write",
                        "content": "Print complete tag information database in XML format.\n\n# save list of all tags\n$success = Image::ExifTool::TagInfoXML::Write('dst.xml');\n\n# list all IPTC tags to console, including Flags\nImage::ExifTool::TagInfoXML::Write(undef, 'IPTC', Flags => 1);\n\n# write all EXIF Camera tags to file\nImage::ExifTool::TagInfoXML::Write($outfile, 'exif:camera');\n\nInputs:\n0) [optional] Output file name, or undef for console output. Output file will be overwritten\nif it already exists.\n\n1) [optional] String of group names separated by colons to specify the group to print. A\nspecific IFD may not be given as a group, since EXIF tags may be written to any IFD. Saves\nall groups if not specified.\n\n2) [optional] Hash of options values:\n\nFlags   - Set to output 'flags' attribute\nNoDesc  - Set to suppress output of descriptions\nLang    - Select a single language for output\n\nReturn Value:\nTrue on success.\n\nSample XML Output:\n\n<?xml version='1.0' encoding='UTF-8'?>\n<taginfo>\n\n<table name='XMP::dc' g0='XMP' g1='XMP-dc' g2='Other'>\n<desc lang='en'>XMP Dublin Core</desc>\n<tag id='title' name='Title' type='lang-alt' writable='true' g2='Image'>\n<desc lang='en'>Title</desc>\n<desc lang='de'>Titel</desc>\n<desc lang='fr'>Titre</desc>\n</tag>\n...\n</table>\n\n</taginfo>\n\nFlags (if selected and available) are formatted as a comma-separated list of the following\npossible values: Avoid, Binary, List, Mandatory, Permanent, Protected, Unknown and Unsafe. See\nthe tag name documentation and lib/Image/ExifTool/README for a description of these flags. For\nXMP List tags, the list type (Alt, Bag or Seq) is also output as a flag if applicable.\n"
                    },
                    {
                        "name": "BuildLangModules",
                        "content": "Build all Image::ExifTool::Lang modules from an XML database file.\n\nImage::ExifTool::TagInfoXML::BuildLangModules('src.xml');\n\nInputs:\n0) XML file name\n\n1) Update flags:\n\n0x01 = preserve version numbers\n0x02 = update all modules, even if they didn't change\n0x04 = update from scratch, ignoring existing definitions\n0x08 = override existing different descriptions and values\n\nReturn Value:\nNumber of modules updated, or negative on error.\n"
                    }
                ]
            },
            "AUTHOR": {
                "content": "Copyright 2003-2022, Phil Harvey (philharvey66 at gmail.com)\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Image::ExifTool(3pm), Image::ExifTool::TagNames(3pm)\n",
                "subsections": []
            }
        }
    }
}