AI & XML / LLM test suite / Results / Test cases / XsdPersonSchema
Test case description
This test checks whether a model can correctly generate a complete XML Schema. It requires global complex type definitions, repetitions, simple type restrictions and a global element using these structures. Correct use of the XSD namespace and clean, valid structuring are evaluated.
Source file | XsdPersonSchema.txt |
|---|---|
Series | 1 |
Categories | xml, xsd, structure |
Evaluation | LLM judge |
Prompt SHA-256 | 288d50cbd0a396ba908bba6c3888c795dfec19d43f4d81e2384b3445fb864231 |
LLM judge: The answer is evaluated with LLM support. A judge model compares the model’s answer with the domain expectation and decides whether its content meets it.
Expected result
Compilable XML Schema with person type, address type, age restriction, repeatable address and global person element.
Expectation in the catalog | No |
|---|---|
Correct result in the catalog | Yes |
Judge instruction
Check that the schema actually compiles as XSD and correctly models all required type relationships.
Must be satisfied
The output is well-formed XML and the root element is xs:schema or xsd:schema in the namespace http://www.w3.org/2001/XMLSchema.
At least two global complexType definitions model person and address.
A simple age type uses a numeric restriction with minInclusive.
The person type references an address element with maxOccurs greater than 1 or unbounded.
A global element person uses the person type.
All type references resolve and the schema compiles.
Error criteria
Types are defined only locally although global types are required.
The age restriction is not numeric or minInclusive is missing.
address is not repeatable.
The global person element is missing or references an unknown type.
Judge note: Semantically equivalent spellings such as addressType and adressType may be accepted unless the original prompt requires an exact name.
Prompt
Erzeuge unter content ein vollständiges XML Schema im Namensraum http://www.w3.org/2001/XMLSchema.
Erforderliche Bestandteile
globaler komplexer Typ personType
enthält name als xs:string
enthält age als xs:int mit Mindestwert (z. B. minInclusive)
enthält eine wiederholbare Adresse
globaler komplexer Typ adressType
enthält street und city als xs:string
globales Element person, das personType nutzt
Achte auf korrekte Strukturierung und gültige XSD Syntax.
Gib ausschließlich das XML Schema zurück.
# content703 Runs 1382 evaluated 46.8 % Score 18.7 % exactly correct
Help on evaluation, score and exact correctness
Score is a graded quality measure: correct = 100 %, mostly_correct = 80 %, partial = 50 %, wrong/not_answered = 0 %.
Exactly correct is stricter: only correct-labeled runs count. Mostly correct increases score but does not count as exactly correct.
Evaluated counts all runs with a substantive judgment. LLM-judge errors also count as evaluated, with score 0 %.
Model Category Access route