www.altova.com
Previous  Top  Next

IXMLValidator


Interface for the XML Validator. Public interface that extends IAltovaXMLEngine.

 

Superinterface: IAltovaXMLEngine, IReleasable

Implementing classes: XMLValidator

 

 

Methods

The following methods are defined.

 

isValid

public boolean isValid()

Validates the input XML data against the DTD/Schema specified in it.

Returns:

true on success, false on failure. In case of failure, you can use the function getLastErrorMessage() declared in IAltovaXMLEngine to get additional information.

 

 

isWellFormed

public boolean isWellFormed()

Checks the input XML data for well-formedness.

Returns:

true on success, false on failure. In case of failure, you can use the function getLastErrorMessage() declared in IAltovaXMLEngine to get additional information.

 

 

isValidWithExternalSchemaOrDTD

public boolean isValidWithExternalSchemaOrDTD()

Validates the input XML data against the external DTD/Schema which can be specified with the functions setDTDFileName(), setDTDFromText(), setSchemaFileName(), setSchemaFromText().

Returns:

true on success, false on failure. In case of failure, you can use the function getLastErrorMessage() declared in IAltovaXMLEngine to get additional information.

 

 

setSchemaFileName

public void setSchemaFileName(java.lang.String filename)

Sets file name for external Schema.

Parameters:

filename: an absolute URL giving the base location of the Schema

 

 

setDTDFileName

public void setDTDFileName(java.lang.String filename)

Sets file name for external DTD.

Parameters:

filename: an absolute URL giving the base location of the DTD.

 

 

setSchemaFromText

public void setSchemaFromText(java.lang.String text)

Sets text value for external Schema.

Parameters:

text: string containing Schema as text.

 

 

setDTDFromText

public void setDTDFromText(java.lang.String text)

Sets text value for external DTD.

Parameters:

text: string containing DTD as text.

 


Previous  Top  Next

© 2008 Altova