If you are having a problem getting the tutorial example applications to work search the Struts 2 mailing list.If you don't find an answer to your problem, post a question on the mailing list.If you are unable to open a file, it is possible that the file has invalid XML code (e.g., unclosed tags, starting tag is uppercase with a lowercase end tag).When you have files with invalid XML, they are added to the non-XML Topics window pane.I then downloaded Oxygen XML editor and it worked fine on the same XML and XSD files, so the files seem to be fine (or Oxygen is more forgiving / flexible . Once all of that is in place, the Visual Studio XML editor should highlight problems with your XML in the editor using blue squigglies: @jim Not sure if you had the same problem, but I spent a ridiculous amount of time before I realized that the XML file must be open in the editor and the focus must be in the editor when you call up the Properties window.Only then do you get the "XML Document" properties where you can assign a schema.To enable the user to edit his information that is stored in the Person object, we have this form: When the user submits the form, we want to validate his entries into the form fields.
The information that can be edited is encapsulated in an object of class Person.
In this tutorial we'll cover how to validate a user's input in form fields using Struts 2's XML validation methodology.
In the Form Validation tutorial we discussed validating a user's input using the validate method in the Action class.
If the focus is in the Solution Explorer, the Properties window displays file properties only, i.e. You don't need to manually associate the files in Visual Studio - it will automatically match an XML file to a XSD file if you have them both open, and you have your namespace defined correctly.
A tool which will validate your xml sitemap and optionally ping Google to inform them of their location.