XML Schema Definitions

 

 

 

XML Schema Definition Page

 

An XML Schema Definition (XSD) defines the set of schema components that constrain the contents of instances and augment the information sets thereof.  Specify a Default Namespace Prefix to prefix each element appearing in the target namespace if the target namespace does not already have a prefix defined.  Each schema will be rendered in the drop down box displaying the namespace the schema is targeting.  If the schema does not target a namespace it will show as {No Namespace}

 

You will be provided with several choices for loading and/or creating an XSD for your supplied XML file.

 

Manual Entry:  If you desire to write your own XSD file, or provide a means for copying and pasting, use the Add and Delete buttons.

oAdd:  Add a blank schema to the list.  The schema will be automatically named, however the name is irrelevant and used only for identification purposes when processing the XSD and determining the structure of the document.

oDelete: Deletes the currently selected schema from the collection.  Deleting a schema is irreversible after saving configuration settings once completed running through the wizard. If an XSD is in the collection is blank or irrelevant to the document, it should be deleted.

Load From XSD File: The button labeled Load From XSD File will allow a user to navigate to an XSD stored locally into the code editor.  The schema will be automatically named, however the name is irrelevant and used only for identification purposes when processing the schema and determining the structure of the document.

Infer From Source:  Auto-determine the structure of the XML file and infer from the source content the XSD content to use in processing the source data.  Inferring a schema can result in wrong types being attributed to an element, depending on the values in the document supplied.  Once inferring the XSD files, it is advised to go through each XSD and verify the appropriate element types.

 

NOTE: After selecting next, the source document will be validated against the XSD file(s).  This is important as this validation will guarantee that the XPath commands provided in the next step will return the correct data.

 


Copyright © 2023 pasUNITY, Inc.

 

Send comments on this topic.