public class XmlValidator extends Object implements ObjectValidator<String>
Constructor and Description |
---|
XmlValidator(String schemaContent) |
XmlValidator(String schemaContent,
String encode) |
public XmlValidator(String schemaContent, String encode) throws ConvertException
ConvertException
public XmlValidator(String schemaContent) throws ConvertException
ConvertException
public boolean isValidate(String xmlString) throws ConvertException
ObjectValidator
isValidate
in interface ObjectValidator<String>
xmlString
- 要验证的对象ConvertException
- 验证中出现的异常Copyright © 2006–2018 TinyGroup. All rights reserved.