ComfyUI > Nodes > ComfyUI-NewBie-LLM-Formatter > XML Style Injector

ComfyUI Node: XML Style Injector

Class Name

LLM_Xml_Style_Injector

Category
NewBie LLM Formatter
Author
SuzumiyaAkizuki (Account age: 0days)
Extension
ComfyUI-NewBie-LLM-Formatter
Latest Updated
2026-03-21
Github Stars
0.04K

How to Install ComfyUI-NewBie-LLM-Formatter

Install this extension via the ComfyUI Manager by searching for ComfyUI-NewBie-LLM-Formatter
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-NewBie-LLM-Formatter in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

XML Style Injector Description

Enhances XML by injecting artist and style info into tags for dynamic content customization.

XML Style Injector:

The LLM_Xml_Style_Injector is a specialized node designed to enhance XML data by injecting artist and style information into specified XML tags. This node is particularly useful for AI artists who work with XML-based data structures and need to dynamically update or enrich their content with additional stylistic metadata. By leveraging predefined styles and allowing for custom additions, this node ensures that your XML data is both comprehensive and tailored to your artistic needs. The primary function of this node is to parse XML input, identify specific tags, and insert or update them with the desired artist and style information, thereby streamlining the process of XML content customization.

XML Style Injector Input Parameters:

xml_input

The xml_input parameter is a required string input that represents the XML data you wish to modify. This parameter is crucial as it serves as the base structure where the style and artist information will be injected. The XML data should be well-formed to ensure successful parsing and modification. There are no specific minimum or maximum values, but the input must be a valid XML string.

preset

The preset parameter allows you to select from a list of predefined styles that are loaded from a configuration file. This parameter helps in quickly applying a consistent style across multiple XML inputs. The available options are dynamically loaded from the configuration, and there is no default value as it depends on the user's configuration file.

artist_add

The artist_add parameter is an optional string input where you can specify additional artist information to be appended to the existing preset artist data. This allows for further customization and personalization of the XML content. The default value is an empty string, and it supports multiline input for more complex artist descriptions.

style_add

The style_add parameter is an optional string input for adding extra style information to the preset style data. Similar to artist_add, this parameter enables you to enhance the XML content with additional stylistic details. The default value is an empty string, and it also supports multiline input for detailed style descriptions.

XML Style Injector Output Parameters:

xml_output

The xml_output parameter is a string that contains the modified XML data after the style and artist information has been injected. This output is crucial as it reflects the updated XML structure with the newly added or modified tags, providing a ready-to-use XML document that incorporates the desired stylistic changes.

XML Style Injector Usage Tips:

  • Ensure that your xml_input is well-formed to avoid parsing errors and ensure successful style injection.
  • Utilize the preset parameter to quickly apply consistent styles across multiple XML documents, saving time and maintaining uniformity.
  • Use the artist_add and style_add parameters to personalize your XML content further, allowing for unique artistic expressions.

XML Style Injector Common Errors and Solutions:

XML 解析失败: {e}

  • Explanation: This error indicates that the XML parsing process failed, possibly due to malformed XML input.
  • Solution: Verify that your xml_input is a well-formed XML string. Use an XML validator to check for syntax errors and correct them before retrying.

未发现 <img> 标签,跳过注入。

  • Explanation: This warning suggests that the <img> tag, which is expected for style injection, was not found in the XML input.
  • Solution: Ensure that your XML input contains the <img> tag or modify the node's logic to target the correct tags for your specific use case.

加载配置文件出错: {e}

  • Explanation: This error occurs when there is an issue loading the configuration file that contains the style presets.
  • Solution: Check the configuration file path and ensure it is correctly formatted and accessible. Verify that the JSON structure is valid and correct any errors.

XML Style Injector Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-NewBie-LLM-Formatter
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

XML Style Injector