open class XmlValidationModeDetector
Detects whether an XML stream is using DTD- or XSD-based validation.
Author
Rob Harrop
Author
Juergen Hoeller
Since
2.0
XmlValidationModeDetector()
Detects whether an XML stream is using DTD- or XSD-based validation. |
static val VALIDATION_AUTO: Int
Indicates that the validation mode should be auto-guessed, since we cannot find a clear indication (probably choked on some special characters, or the like). |
|
static val VALIDATION_DTD: Int
Indicates that DTD validation should be used (we found a "DOCTYPE" declaration). |
|
static val VALIDATION_NONE: Int
Indicates that the validation should be disabled. |
|
static val VALIDATION_XSD: Int
Indicates that XSD validation should be used (found no "DOCTYPE" declaration). |
open fun detectValidationMode(inputStream: InputStream): Int
Detect the validation mode for the XML document in the supplied InputStream. Note that the supplied InputStream is closed by this method before returning. |