This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 1368
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: 18153
    
    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
Unit Testing XSL-FO generation
Test Driven - organizing resources
getControlParser
XMLUnit for comparing XML
how to compare two xml files?