What is the difference between validation and parsing?
I know parsing check file structure (grammar), so
may be checked as OK in parsing function,
but may be WRONG in validation process because there is no attr value like “pink”? Am I right?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Parsing in xml terms is building a document tree from the xml data
Validation is checking the content of that tree against a schema
So if you had
It could be parsed because it has a root node and all open and close tags match up etc
If you validated against a schema which said the root node was Form though it would be invalid.