I'm have a problem with validating xml files that use a subtype of a base type. Whenever I try to use subtypes and try to validate, I get the error:
" Cannot resolve 'gamma:GammaType' to a type definition for element 'beta:beta' " My XML document looks like: <alpha:alpha xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance xmlns:alpha=http://a/b/c/alpha xmlns:beta=http://a/b/c/beta xmlns:gamma=http://a/b/c/gamma> <beta:beta xsi:type="gamma:GammaType"> </beta:beta> </alpha:alpha> And the pertinent part of my pom look like: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>xml-maven-plugin</artifactId> <executions><execution><goals><goal>validate</goal></goals></execution>< /executions> <configuration> <catalogs> <catalog>../../../catalog.xml</catalog> </catalogs> <validationSets> <validationSet> <dir>src/test/resources</dir> <systemId>src/main/resources/alpha.xsd</systemId> </validationSet> </validationSets> </configuration> </plugin> I can validate this xml message using the Eclipse validator, but when I try to validate with the xml-maven-plugin, I get the error mentioned above. Is this a problem with my pom? Do I need to reference the beta or gamma prefix in a validationSet? Thanks for your help
