XML Hi, I have a string containing data in XML format. Is there any method in java that allows strings as input to validate xml?
Java Script provides a way to validate form's data on the client's computer before sending it to the web server. First let us see how to do a basic form validation.
In the above form, we are calling validate() to validate data when onsubmit event is occurring.
The following code shows the implementation of this validate() function.
Now we will see how we can validate our entered form data before submitting it to the web server.
The following example shows how to validate an entered email address.
An email address must contain at least a ‘@’ sign and a dot (.).