How to Convert XML to Xsd Online

Techwalla may earn compensation through affiliate links in this story.

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.

Advertisement

Flame-Ware Instructions

Step 1

Create an XML document. For example, an employee records file may look like:

Video of the Day

Alex Weber 123456784 Sales Manager BA in Sales

Advertisement

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.

Advertisement

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:

Advertisement

<xs:element name="ssn" minOccurs="1" maxOccurs="1" msdata:Ordinal="1"> xs:simpleType <xs:restriction base="xs:string"> <xs:pattern value="[0-9]{9}"/>

Advertisement

Step 8

Save the modified XSD file.

Advertisement

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.

Advertisement

Step 3

Modify the content of the XSD and save the XSD.

XML Schema Generator

Step 1

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

Advertisement

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.

Advertisement

Advertisement

Report an Issue

screenshot of the current page

Screenshot loading...