• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XMLUnit - The validity of a piece of XML ?

 
kri shan
Ranch Hand
Posts: 1462
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am planning to use xmlUnit for unit testing xml documents. XML unit supports 'The validity of a piece of XML'. I do not understand what is validity of a piece of XML. Is it validating XML document with XSD?
 
Paul Clapham
Sheriff
Posts: 20980
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally "well-formed" refers to an XML document which correctly follows the rules of XML, and "valid" refers to a document which also correctly follows the rules of some DTD or schema.

It's likely that whoever wrote that statement knew that and was in fact referring to validation via DTD or schema. But it's possible they were careless and used the wrong term. You would have to ask them exactly what they meant if you wanted to know exactly what they meant.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic