Two Laptop Bag*
The moose likes XML and Related Technologies and the fly likes XMLUnit - The validity of a piece of XML ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XMLUnit - The validity of a piece of XML ?" Watch "XMLUnit - The validity of a piece of XML ?" New topic
Author

XMLUnit - The validity of a piece of XML ?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XMLUnit - The validity of a piece of XML ?
 
Similar Threads
how to compare two xml files?
Unit Testing XSL-FO generation
getControlParser
Test Driven - organizing resources
XMLUnit for comparing XML