View Source Idmlx.Components.Tags behaviour (idmlx v0.2.1)
Provides functionality for parsing and working with InDesign XML tags.
This module handles:
- Parsing tags from IDMS/IDML files
- Managing tag collections
- XML tag extraction and processing
Tag Processing
Tags are processed from the XML/Tags.xml file in IDML packages or from the corresponding section in IDMS files.
Usage
Tags are typically used for:
- XML structure definition
- Content markup
- Export/import workflows
- Document organization
Summary
Functions
Gets all XML tags from a file.
Callbacks
@callback get_tags(String.t()) :: [Idmlx.Components.Tag.t()]
Functions
@spec get_tags(String.t()) :: [Idmlx.Components.Tag.t()]
Gets all XML tags from a file.
Parameters
- file_path: Path to the tags file (defaults to "XML/Tags.xml")
Returns
List of Tag structs
Examples
iex> Idmlx.Components.Tags.get_tags("XML/Tags.xml")
[%Tag{name: "Article"}, %Tag{name: "Section"}]