When using XML Schema, common questions usually involve attachment failures, validation issues, and missing element display; this FAQ includes 3 common questions and a glossary.
FAQ
What should I do if I cannot attach an XML schema?
- Check whether the XSD file format is correct.
- Make sure the file encoding can be recognized and the file is not damaged.
- Try again through Developer Tools → Schema → Add Schema.
What should I do if schema validation fails?
- Review the current message and identify the reported location.
- Check whether XML elements in the document are missing required attributes.
- Check whether the element data types match the schema definition.
Why are no elements displayed after I attach a schema?
- Open the XML structure-related pane to inspect the elements.
- Make sure the schema is enabled.
- If multiple schemas are attached, check whether the current document is using the expected schema.
Glossary
| Term | Definition |
|---|---|
| XML Schema | A rule set that defines XML element structure, data types, and constraint rules. The common file extension is .xsd. |
| Namespace | An identifier used to distinguish the source and scope of XML elements and help avoid naming conflicts. |
| Schema Library | The management area used to view, maintain, delete, or update attached schemas. |