@Immutable public final class XMLSchemaValidationHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.helger.commons.error.list.IErrorList |
validate(com.helger.commons.io.resource.IReadableResource[] aSchemas,
com.helger.commons.io.resource.IReadableResource aXML) |
static com.helger.commons.error.list.IErrorList |
validate(com.helger.commons.io.resource.IReadableResource[] aSchemas,
Source aXML) |
static com.helger.commons.error.list.IErrorList |
validate(com.helger.commons.io.resource.IReadableResource aSchema,
com.helger.commons.io.resource.IReadableResource aXML) |
static com.helger.commons.error.list.IErrorList |
validate(com.helger.commons.io.resource.IReadableResource aSchema,
Source aXML) |
static com.helger.commons.error.list.IErrorList |
validate(Schema aSchema,
com.helger.commons.io.resource.IReadableResource aXML) |
static com.helger.commons.error.list.IErrorList |
validate(Schema aSchema,
Source aXML) |
static void |
validate(Schema aSchema,
Source aXML,
com.helger.commons.error.list.ErrorList aErrorList)
Validate the passed XML against the passed XSD and put all errors in the
passed error list.
|
@Nonnull public static com.helger.commons.error.list.IErrorList validate(@Nonnull com.helger.commons.io.resource.IReadableResource aSchema, @Nonnull com.helger.commons.io.resource.IReadableResource aXML)
@Nonnull public static com.helger.commons.error.list.IErrorList validate(@Nonnull @Nonempty com.helger.commons.io.resource.IReadableResource[] aSchemas, @Nonnull com.helger.commons.io.resource.IReadableResource aXML)
@Nonnull public static com.helger.commons.error.list.IErrorList validate(@Nonnull Schema aSchema, @Nonnull com.helger.commons.io.resource.IReadableResource aXML)
@Nonnull public static com.helger.commons.error.list.IErrorList validate(@Nonnull @Nonempty com.helger.commons.io.resource.IReadableResource aSchema, @Nonnull Source aXML)
@Nonnull public static com.helger.commons.error.list.IErrorList validate(@Nonnull @Nonempty com.helger.commons.io.resource.IReadableResource[] aSchemas, @Nonnull Source aXML)
@Nonnull public static com.helger.commons.error.list.IErrorList validate(@Nonnull Schema aSchema, @Nonnull Source aXML)
public static void validate(@Nonnull Schema aSchema, @Nonnull Source aXML, @Nonnull com.helger.commons.error.list.ErrorList aErrorList)
aSchema - The source XSD. May not be null.aXML - The XML to be validated. May not be null.aErrorList - The error list to be filled. May not be null.IllegalArgumentException - If XSD validation failed with an exceptionCopyright © 2014–2017 Philip Helger. All rights reserved.