Describe XML schema
describe_schemaRetrieve valid XML elements, attributes, types, and enums from Mount & Blade II: Bannerlord schemas and official data before writing game XML.
Instructions
Explains which elements/attributes are valid, from the game's own XSD files (XmlSchemas folder) plus real values observed in official data. Use before writing XML. No args: list XmlName ids. xml_id only: root and object elements. element (+path for nested ones, e.g. element=Weapon path=Item/ItemComponent/Weapon): attributes with types/enums and children.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional path suffix to disambiguate nested elements, e.g. Item/ItemComponent/Weapon. | |
| xml_id | No | XmlName id, e.g. Items, NPCCharacters, SPCultures, Factions, Kingdoms, Settlements, partyTemplates, CraftingPieces, Heroes, GameText. | |
| element | No | Element name, e.g. Item, CraftedItem, NPCCharacter, Culture, Settlement, Weapon, equipment. | |
| observed | No | Also show attribute values seen in official data (default true). |