|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.webapps.dimlib.util.XMLValidator
XML Document Validator. Takes an XML Document and validates it against its DTD or W3C Schema.
Provides easy access to the validation error message, and location of the error.
Also provides automatic conversion between XML and HTML (for easily displaying
XML documents within a web browser.) If a validation error occurs, the
hasValidationError() method returns true. The getHTMLData()
method returns an HTML version of the document, with the error location (if any) highlighted.
Current implementation uses JDOM.
| Constructor Summary | |
XMLValidator(java.lang.String xmlData)
Constructor |
|
| Method Summary | |
int |
getColumnNumber()
Gets the column number of the Validation Error |
java.lang.String |
getErrorMsg()
Gets the Validation Error Message |
java.lang.String |
getHTMLData()
Gets the original XML Data, transformed into safe HTML. |
int |
getLineNumber()
Gets the line number of the Validation Error |
boolean |
hasValidationError()
Indicates whether the document has one (or more) validation errors. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLValidator(java.lang.String xmlData)
xmlData - String of XML Data| Method Detail |
public boolean hasValidationError()
public java.lang.String getErrorMsg()
public int getLineNumber()
public int getColumnNumber()
public java.lang.String getHTMLData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||