# vmoranv/aola_xml_extract architecture

> Architecture diagram of the GitHub repository vmoranv/aola_xml_extract, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vmoranv/aola_xml_extract
- Repository: https://github.com/vmoranv/aola_xml_extract

## Overview

A small command-line utility prompts for an XML file and FFDec JAR, extracts SWF links, downloads each SWF, invokes FFDec to export scripts, finds Panel-like classes, and writes one MYA file per class. The implementation is a single script, so the graph focuses on its real runtime stages and temporary/output state. Relationships are supported by the excerpted script and documented workflow.

Main entry points: [`提取xml.py`](https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py) (Per-URL processing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Extraction workflow"]
  node_main["CLI orchestration<br/>[提取xml.py]"]
  node_xml["XML URL extraction<br/>[提取xml.py]"]
  node_single["Per-URL processing<br/>[提取xml.py]"]
  node_download["SWF download<br/>[提取xml.py]"]
  node_classes["Panel class extraction<br/>[提取xml.py]"]
  node_mya["MYA generation<br/>[提取xml.py]"]
end

subgraph group_artifacts["Files and tools"]
  node_xmlfile["Input XML"]
  node_swfstore[("Temporary SWF files")]
  node_ffdec["FFDec JAR"]
  node_java["Java runtime"]
  node_scripts["Exported scripts"]
  node_output["MYA output files"]
end

node_user(("CLI user"))
node_service["SWF hosting service"]

node_user -->|"provides paths"| node_main
node_main -->|"extracts URLs"| node_xml
node_xmlfile -->|"parses"| node_xml
node_xml -->|"returns URL pairs"| node_main
node_main -->|"processes each"| node_single
node_single -->|"downloads SWF"| node_download
node_download -->|"requests SWF"| node_service
node_download -->|"writes file"| node_swfstore
node_single -->|"extracts classes"| node_classes
node_classes -->|"runs via"| node_java
node_java -->|"loads JAR"| node_ffdec
node_classes -->|"exports scripts"| node_scripts
node_single -->|"writes per class"| node_mya
node_mya -->|"creates files"| node_output

click node_main "https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py"
click node_xml "https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py"
click node_single "https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py"
click node_download "https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py"
click node_classes "https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py"
click node_mya "https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_xml,node_single,node_download,node_classes,node_mya,node_user toneBlue
class node_xmlfile,node_swfstore,node_ffdec,node_java,node_scripts,node_output toneAmber
class node_service toneIndigo
```

## Components

### Extraction workflow

- [CLI orchestration](https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py): `提取xml.py`
- [XML URL extraction](https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py): `提取xml.py`
- [Per-URL processing](https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py): `提取xml.py`
- [SWF download](https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py): `提取xml.py`
- [Panel class extraction](https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py): `提取xml.py`
- [MYA generation](https://github.com/vmoranv/aola_xml_extract/blob/master/%E6%8F%90%E5%8F%96xml.py): `提取xml.py`

### Files and tools

- **Input XML**
- **Temporary SWF files**
- **FFDec JAR**
- **Java runtime**
- **Exported scripts**
- **MYA output files**

### Other components

- **CLI user**
- **SWF hosting service**

## Connections

- CLI user → CLI orchestration: provides paths (evidence: `README.md`)
- CLI orchestration → XML URL extraction: extracts URLs (evidence: `提取xml.py`)
- Input XML → XML URL extraction: parses (evidence: `提取xml.py`)
- XML URL extraction → CLI orchestration: returns URL pairs (evidence: `提取xml.py`)
- CLI orchestration → Per-URL processing: processes each (evidence: `提取xml.py`)
- Per-URL processing → SWF download: downloads SWF (evidence: `提取xml.py`)
- SWF download → SWF hosting service: requests SWF (evidence: `提取xml.py`)
- SWF download → Temporary SWF files: writes file (evidence: `提取xml.py`)
- Per-URL processing → Panel class extraction: extracts classes (evidence: `提取xml.py`)
- Panel class extraction → Java runtime: runs via (evidence: `提取xml.py`)
- Java runtime → FFDec JAR: loads JAR
- Panel class extraction → Exported scripts: exports scripts (evidence: `提取xml.py`)
- Per-URL processing → MYA generation: writes per class (evidence: `提取xml.py`)
- MYA generation → MYA output files: creates files (evidence: `提取xml.py`)
