草庐IT

parserFactory

全部标签

java - parser.setFeature 与 parser.setValidating

以下有什么区别:parser.setFeature("http://xml.org/sax/features/validation",true);andparser.setFeature("http://apache.org/xml/features/validation/schema",true);andparser.setValidating(true);我在google上找到了两次确切的问题,但没有找到答案我正在使用org.apache.commons.digester,我在消化器上调用setFeature或setValidating。 最佳答案