Saturday, September 12, 2020

Create XSD using Eclipse

  Steps:

1. Create a new Project and a new folder under that project.

2. If you want, you can change the default namespace.

Window -> Preferences ->  XML Schema.


3. Create a XML schema file.

New -> Other -> XML Schema File

4. Click 'Add Element' and define complex type for the root element.


5. Design the structure as per your requirement. You can also set the occurrence using 'Set Multiplicity' option.


 6. Now Click on .xsd file -> Validate to check if there is any error.

7. To create an instance, click on .xsd file -> Generate ->  XML File and fill up sample data.



 

1 comment: