|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.util.XMLChecker
Check XML documents against their DTD's and be as pretty as possible about errors
| Nested Class Summary | |
class |
XMLChecker.XMLCheckerHandler
Handler for processing errors and warnings during parsing of a xml document. |
| Field Summary | |
static java.lang.String |
error_color
Color for error messages |
static java.lang.String |
fatalerror_color
Color for fatal error messages |
static java.lang.String |
warning_color
Color for warning messages |
| Constructor Summary | |
XMLChecker(java.io.PrintStream out)
Create a checker |
|
| Method Summary | |
boolean |
validate(java.lang.String filename)
Validate a specified xml file. |
void |
validateAndReport(java.lang.String filename)
Validate a specified xml file, and create a report. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String error_color
public static java.lang.String fatalerror_color
public static java.lang.String warning_color
| Constructor Detail |
public XMLChecker(java.io.PrintStream out)
out - Stream that recieves the results of the check (errors and warnings and report).| Method Detail |
public void validateAndReport(java.lang.String filename)
filename - path to the xml file to parse and checkpublic boolean validate(java.lang.String filename)
filename - path to the xml file to parse and check
true
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||