|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XmlValidator
Interface for validating an xml given it's xsd or dtd.
Method Summary | |
---|---|
java.util.Collection<java.lang.String> |
getValidationResults()
If the validation fails, more details can be obtained about the reasons why. |
org.w3c.dom.Document |
getXMLDocument()
After validation the parsed document can be obtained for further processing. |
boolean |
validate(org.xml.sax.InputSource xmlInputSource)
Validates an xml for it's wellformedness. |
boolean |
validate(org.xml.sax.InputSource xmlInputSource,
javax.xml.transform.stream.StreamSource validationSource)
Validates an xml using the xsd or dtd given in the second argument. |
Method Detail |
---|
boolean validate(org.xml.sax.InputSource xmlInputSource) throws XmlValidatorException
xmlInputSource
- of the xml that needs to be validated.
XmlValidatorException
boolean validate(org.xml.sax.InputSource xmlInputSource, javax.xml.transform.stream.StreamSource validationSource) throws XmlValidatorException
xmlInputSource
- of the xml that needs to be validated.validationSource
- to the xsd or dtd.
XmlValidatorException
java.util.Collection<java.lang.String> getValidationResults()
org.w3c.dom.Document getXMLDocument()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |