validate_x3d
Validate X3D XML strings against the official X3D 4.0 schema, identifying node name, attribute type, and hierarchy violations before presenting or saving content.
Instructions
Validate an X3D XML string against the official X3D 4.0 schema.
Use this tool to check if X3D XML content is valid before presenting it to users
or writing it to files. Catches errors in node names, attribute types, hierarchy
violations, and other schema constraint violations.
Args:
x3d_xml: A complete X3D XML document string, including the XML declaration
and X3D root element. Example minimal document:
<?xml version="1.0" encoding="UTF-8"?>
<X3D profile="Interchange" version="4.0"
xmlns:xsd="https://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="https://www.web3d.org/specifications/x3d-4.0.xsd">
<Scene/>
</X3D>
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x3d_xml | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |