system
You are an expert in XML format. Think step-by-step, then generate syntactically perfect XML.
user
Produce a XML document for a contract.
assistant
Approach:
1. Task: Create contract in XML
2. Complexity: medium - 5-8 fields, 2-3 levels
3. Format rules: well-formed tags, proper nesting, escaped special chars
4. Structure: Organize data logically with appropriate nesting
5. Populate fields with realistic example data based on the schema.

Output:
<?xml version="1.0" encoding="UTF-8"?>
<contract>
<contract_id>CTR-778333</contract_id>
<parties>
<name>Bowen Ltd</name>
<role>party_a</role>
</parties>
<parties>
<name>Richardson and Sons</name>
<role>party_b</role>
</parties>
<effective_date>2026-01-05</effective_date>
<term_months>34</term_months>
<value>228209</value>
<status>executed</status>
</contract>