Idea & xml & xsd

I'm using Idea 9 beta. Idea 8 was said to be able to create xsd from an xml file. How could I do that?

I created a simple xml file like in the attached image. Then I right-clicked on the file name anh chose Validate. Then I saw some errors. Could anybody tell me what's wrong?

Thank you.



Attachment(s):
untitled1.png
1 comment
Comment actions Permalink

dxxvi wrote:

I'm using Idea 9 beta. Idea 8 was said to be able to create xsd from an xml file. How could I do that?

I created a simple xml file like in the attached image. Then I right-clicked on the file name anh chose Validate. Then I saw some errors. Could anybody tell me what's wrong?

Thank you.

The "Validate" action validates the XML file against a schema or DTD. To create the schema, right-click and select "Generate XSD schema from XML file" to generate a schema. Once the schema is generated, use it to manually register the namespace. Once registered, you will then be able to validate against it.

0

Please sign in to leave a comment.