How to Convert XML to Xsd Online

By SuraiyaK

XML means eXtensible Markup Language whereas XSD means XML Schema definition. XML documents transfer data to and from web services. XSD defines the structure and data type of the elements in an XML document. Use XSD to validate the content of an XML document. You may need to modify the automatically generated XSD to fulfill business requirements.

Things You'll Need

  • Flame-Ware, Hit Software SML Utility or XML Schema Generator
  • Text editor
  • W3schools XSD tutorial

Flame-Ware Instructions

Step 1

Create an XML document. For example, an employee records file may look like: Alex Weber123456784SalesManagerBA in Sales

Step 2

Save the XML document.

Step 3

Visit the Flame-Ware website (see References).

Step 4

Insert the full path name of the local XML document in the text box for file name.

Step 5

Press the "Convert" button. The generated XSD will appear in the text area at the bottom of the page.

Step 6

Save the generated XSD to your computer.

Step 7

Modify the content of the XSD if necessary. For example, in the employee records file to indicate that SSN is a required field and it must have nine digits, the XSD file would look like:

Step 8

Save the modified XSD file.

Hit Software Instructions

Step 1

Visit the Hit Software website for an XML utility (see References). Insert the name of the XML document in the text box labeled as "XML Document."

Step 2

Press the "Generate XML Schema" button to generate XSD.

Step 3

Modify the content of the XSD and save the XSD.

XML Schema Generator

Step 1

Visit the for the XML schema generation page (see References).

Step 2

Insert the content of your XML document or corresponding URL in the text box.

Step 3

Press the "Generate Schema" button.

Step 4

Modify the generated XSD, and save.

Tips & Warnings

  • So the automatically generated and modified XSD represents the XML document, validate the file (e.g., employee_list.xml) with respect to the XSD file (e.g., employee_list.xsd) using an online validator from Before doing so, transfer the XML and XSD files to a server. Then in the "Address" text box on the online validator, insert the URL for the XML file name then the URL for the XSD file name with a space in between the names. Press the "Get Results." If you see error messages, then modify the content of the XSD file and test it. Do it repeatedly until there is no error.