public class XmlValidator extends Object
Constructor and Description |
---|
XmlValidator(Log log)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(String content)
Validate an XML content with SAX.
|
public XmlValidator(Log log)
log
- a logger, not null.public void validate(String content) throws ParseException
content
- a not null xml contentParseException
- if any.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.