/** * Assert that a String containing XML contains valid XML: the String must * contain a DOCTYPE declaration to be validated * @param xmlString * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public void assertXMLValid(String xmlString) throws SAXException, ConfigurationException { XMLAssert.assertXMLValid(xmlString); }
/** * Assert that a Validator instance returns <code>isValid() == true</code> * @param validator */ public void assertXMLValid(Validator validator) { XMLAssert.assertXMLValid(validator); }
/** * Assert that a piece of XML contains valid XML: the input must * contain a DOCTYPE declaration to be validated * @param xml * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public void assertXMLValid(InputSource xml) throws SAXException, ConfigurationException { XMLAssert.assertXMLValid(xml); }
/** * Assert that a piece of XML contains valid XML: the input must * contain a DOCTYPE declaration to be validated * @param xml * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public void assertXMLValid(InputSource xml) throws SAXException, ConfigurationException { XMLAssert.assertXMLValid(xml); }
/** * Assert that a String containing XML contains valid XML: the String must * contain a DOCTYPE declaration to be validated * @param xmlString * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public void assertXMLValid(String xmlString) throws SAXException, ConfigurationException { XMLAssert.assertXMLValid(xmlString); }
/** * Assert that a Validator instance returns <code>isValid() == true</code> * @param validator */ public void assertXMLValid(Validator validator) { XMLAssert.assertXMLValid(validator); }
/** * Assert that a String containing XML contains valid XML: the String will * be given a DOCTYPE to be validated with the name and systemId specified * regardless of whether it already contains a doctype declaration. * @param xmlString * @param systemId * @param doctype * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public void assertXMLValid(String xmlString, String systemId, String doctype) throws SAXException, ConfigurationException { XMLAssert.assertXMLValid(xmlString, systemId, doctype); }
/** * Assert that a piece of XML contains valid XML: the document must * contain a DOCTYPE to be validated, but the validation will use the * systemId to obtain the DTD * @param xml * @param systemId * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public void assertXMLValid(InputSource xml, String systemId) throws SAXException, ConfigurationException { XMLAssert.assertXMLValid(xml, systemId); }
/** * Assert that a String containing XML contains valid XML: the String must * contain a DOCTYPE to be validated, but the validation will use the * systemId to obtain the DTD * @param xmlString * @param systemId * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public void assertXMLValid(String xmlString, String systemId) throws SAXException, ConfigurationException { XMLAssert.assertXMLValid(xmlString, systemId); }
/** * Assert that a piece of XML contains valid XML: the document must * contain a DOCTYPE to be validated, but the validation will use the * systemId to obtain the DTD * @param xml * @param systemId * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public void assertXMLValid(InputSource xml, String systemId) throws SAXException, ConfigurationException { XMLAssert.assertXMLValid(xml, systemId); }
/** * Assert that a String containing XML contains valid XML: the String must * contain a DOCTYPE to be validated, but the validation will use the * systemId to obtain the DTD * @param xmlString * @param systemId * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public void assertXMLValid(String xmlString, String systemId) throws SAXException, ConfigurationException { XMLAssert.assertXMLValid(xmlString, systemId); }
/** * Assert that an InputSource containing XML contains valid XML: * the document must contain a DOCTYPE declaration to be validated * @param xml * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public static void assertXMLValid(InputSource xml) throws SAXException, ConfigurationException { assertXMLValid(new Validator(xml)); }
/** * Assert that an InputSource containing XML contains valid XML: * the document must contain a DOCTYPE declaration to be validated * @param xml * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public static void assertXMLValid(InputSource xml) throws SAXException, ConfigurationException { assertXMLValid(new Validator(xml)); }
/** * Assert that a String containing XML contains valid XML: the String must * contain a DOCTYPE declaration to be validated * @param xmlString * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public static void assertXMLValid(String xmlString) throws SAXException, ConfigurationException { assertXMLValid(new Validator(xmlString)); }
/** * Assert that a String containing XML contains valid XML: the String must * contain a DOCTYPE declaration to be validated * @param xmlString * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public static void assertXMLValid(String xmlString) throws SAXException, ConfigurationException { assertXMLValid(new Validator(xmlString)); }
/** * Assert that an InputSource containing XML contains valid XML: * the document must contain a DOCTYPE to be validated, but the * validation will use the systemId to obtain the DTD * @param xml * @param systemId * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public static void assertXMLValid(InputSource xml, String systemId) throws SAXException, ConfigurationException { assertXMLValid(new Validator(xml, systemId)); }
/** * Assert that an InputSource containing XML contains valid XML: * the document must contain a DOCTYPE to be validated, but the * validation will use the systemId to obtain the DTD * @param xml * @param systemId * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public static void assertXMLValid(InputSource xml, String systemId) throws SAXException, ConfigurationException { assertXMLValid(new Validator(xml, systemId)); }
/** * Assert that a String containing XML contains valid XML: the String must * contain a DOCTYPE to be validated, but the validation will use the * systemId to obtain the DTD * @param xmlString * @param systemId * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public static void assertXMLValid(String xmlString, String systemId) throws SAXException, ConfigurationException { assertXMLValid(new Validator(xmlString, systemId)); }
/** * Assert that a String containing XML contains valid XML: the String must * contain a DOCTYPE to be validated, but the validation will use the * systemId to obtain the DTD * @param xmlString * @param systemId * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public static void assertXMLValid(String xmlString, String systemId) throws SAXException, ConfigurationException { assertXMLValid(new Validator(xmlString, systemId)); }
/** * Assert that a String containing XML contains valid XML: the String will * be given a DOCTYPE to be validated with the name and systemId specified * regardless of whether it already contains a doctype declaration. * @param xmlString * @param systemId * @param doctype * @throws SAXException * @throws ConfigurationException if validation could not be turned on * @see Validator */ public static void assertXMLValid(String xmlString, String systemId, String doctype) throws SAXException, ConfigurationException { assertXMLValid(new Validator(new StringReader(xmlString), systemId, doctype)); }