PH AI Works — Technical Demo

日本語

XML Generation & Schema Validation

Illustration of form data flowing into a structured document that passes a schema check gate, with one wrong block caught and set aside

This demo turns form data into an XML document that follows a fixed specification, then checks the finished file against an XSD schema (the rulebook for the format). The backend is written in Python (Pydantic and lxml). Every button on this page runs the real generation and checking code; nothing is pre-recorded.

STEP 1

JSON input

Sent from the browser

STEP 2

Pydantic

Validates the input

STEP 3

lxml

Maps fields into XML

STEP 4

XSD

Validates the output

Filing data

These are sample values. Change any field and click Generate XML again.