当前位置: 技术问答>java相关
急急急!java和xml问题!
来源: 互联网 发布时间:2015-03-28
本文导语: 我的程序运行环境是 windows2000,jdk1.3,xerces1.4.1; 我想问一下,xerces1.4.1是否有验证DTD的功能? | parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",false ); parser.setFeature( "http://x...
我的程序运行环境是 windows2000,jdk1.3,xerces1.4.1;
我想问一下,xerces1.4.1是否有验证DTD的功能?
我想问一下,xerces1.4.1是否有验证DTD的功能?
|
parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",false );
parser.setFeature( "http://xml.org/sax/features/validation",false );
parser.setFeature( "http://xml.org/sax/features/namespaces",false );
parser.setFeature( "http://apache.org/xml/features/validation/schema",false );
parser.setFeature( "http://xml.org/sax/features/validation",false );
parser.setFeature( "http://xml.org/sax/features/namespaces",false );
parser.setFeature( "http://apache.org/xml/features/validation/schema",false );
|
有得
|
xerces?没听说过,你这题目果然难结
|
parser.setFeature( "http://xml.org/sax/features/validation",true);