本文整理了Java中com.ctc.wstx.api.ReaderConfig.doSupportDTDs
方法的一些代码示例,展示了ReaderConfig.doSupportDTDs
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReaderConfig.doSupportDTDs
方法的具体详情如下:
包路径:com.ctc.wstx.api.ReaderConfig
类名称:ReaderConfig
方法名:doSupportDTDs
暂无
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
/**
* Method to call to make Reader created conform as closely to XML
* standard as possible, doing all checks and transformations mandated
* (linefeed conversions, attr value normalizations).
* See {@link XMLInputFactory2#configureForXmlConformance} for
* required settings for standard StAX/StAX properties.
*<p>
* In addition to the standard settings, following Woodstox-specific
* settings are also done:
*<ul>
* <b>None</b>.
*</ul>
*<p>
* Notes: Does NOT change 'performance' settings (buffer sizes,
* DTD caching, coalescing, interning, accurate location info).
*/
public void configureForXmlConformance()
{
// // StAX 1.0 settings
doSupportNamespaces(true);
doSupportDTDs(true);
doSupportExternalEntities(true);
doReplaceEntityRefs(true);
// // Stax2 additional settings
// Better enable full xml:id checks:
doXmlIdTyping(true);
doXmlIdUniqChecks(true);
// Woodstox-specific ones:
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
mFeatNsPrefixes = nsPrefixes;
mConfig = sf.createPrivateConfig();
mConfig.doSupportDTDs(true);
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
doSupportDTDs(ArgUtil.convertToBoolean(propName, value));
break;
代码示例来源:origin: woodstox/wstx-asl
WstxSAXParser(WstxInputFactory sf, boolean nsPrefixes)
{
mStaxFactory = sf;
mFeatNsPrefixes = nsPrefixes;
mConfig = sf.createPrivateConfig();
mConfig.doSupportDTDs(true);
/* Lazy parsing is a tricky thing: although most of the time
* it's useless with SAX, it is actually necessary to be able
* to properly model internal DTD subsets, for example. So,
* we can not really easily determine defaults.
*/
MyResolver r = new MyResolver();
/* SAX doesn't distinguish between DTD (ext. subset, PEs) and
* entity (external general entities) resolvers, so let's
* assign them both:
*/
mConfig.setDtdResolver(r);
mConfig.setEntityResolver(r);
mConfig.setDTDEventListener(this);
// !!! TEST
//mConfig.doCacheDTDs(false);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
WstxSAXParser(WstxInputFactory sf, boolean nsPrefixes)
{
mStaxFactory = sf;
mFeatNsPrefixes = nsPrefixes;
mConfig = sf.createPrivateConfig();
mConfig.doSupportDTDs(true);
/* Lazy parsing is a tricky thing: although most of the time
* it's useless with SAX, it is actually necessary to be able
* to properly model internal DTD subsets, for example. So,
* we can not really easily determine defaults.
*/
ResolverProxy r = new ResolverProxy();
/* SAX doesn't distinguish between DTD (ext. subset, PEs) and
* entity (external general entities) resolvers, so let's
* assign them both:
*/
mConfig.setDtdResolver(r);
mConfig.setEntityResolver(r);
mConfig.setDTDEventListener(this);
// !!! TEST
//mConfig.doCacheDTDs(false);
}
代码示例来源:origin: woodstox/wstx-lgpl
WstxSAXParser(WstxInputFactory sf, boolean nsPrefixes)
{
mStaxFactory = sf;
mFeatNsPrefixes = nsPrefixes;
mConfig = sf.createPrivateConfig();
mConfig.doSupportDTDs(true);
/* Lazy parsing is a tricky thing: although most of the time
* it's useless with SAX, it is actually necessary to be able
* to properly model internal DTD subsets, for example. So,
* we can not really easily determine defaults.
*/
MyResolver r = new MyResolver();
/* SAX doesn't distinguish between DTD (ext. subset, PEs) and
* entity (external general entities) resolvers, so let's
* assign them both:
*/
mConfig.setDtdResolver(r);
mConfig.setEntityResolver(r);
mConfig.setDTDEventListener(this);
// !!! TEST
//mConfig.doCacheDTDs(false);
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
/**
* Method to call to make Reader created conform as closely to XML
* standard as possible, doing all checks and transformations mandated
* (linefeed conversions, attr value normalizations).
* See {@link XMLInputFactory2#configureForXmlConformance} for
* required settings for standard StAX/StAX properties.
*<p>
* In addition to the standard settings, following Woodstox-specific
* settings are also done:
*<ul>
* <b>None</b>.
*</ul>
*<p>
* Notes: Does NOT change 'performance' settings (buffer sizes,
* DTD caching, coalescing, interning, accurate location info).
*/
public void configureForXmlConformance()
{
// // StAX 1.0 settings
doSupportNamespaces(true);
doSupportDTDs(true);
doSupportExternalEntities(true);
doReplaceEntityRefs(true);
// // Stax2 additional settings
// Better enable full xml:id checks:
doXmlIdTyping(true);
doXmlIdUniqChecks(true);
// Woodstox-specific ones:
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
/**
* Method to call to make Reader created conform as closely to XML
* standard as possible, doing all checks and transformations mandated
* (linefeed conversions, attr value normalizations).
* See {@link XMLInputFactory2#configureForXmlConformance} for
* required settings for standard StAX/StAX properties.
*<p>
* In addition to the standard settings, following Woodstox-specific
* settings are also done:
*<ul>
* <b>None</b>.
*</ul>
*<p>
* Notes: Does NOT change 'performance' settings (buffer sizes,
* DTD caching, coalescing, interning, accurate location info).
*/
public void configureForXmlConformance()
{
// // StAX 1.0 settings
doSupportNamespaces(true);
doSupportDTDs(true);
doSupportExternalEntities(true);
doReplaceEntityRefs(true);
// // Stax2 additional settings
// Better enable full xml:id checks:
doXmlIdTyping(true);
doXmlIdUniqChecks(true);
// Woodstox-specific ones:
}
代码示例来源:origin: Nextdoor/bender
/**
* Method to call to make Reader created conform as closely to XML
* standard as possible, doing all checks and transformations mandated
* (linefeed conversions, attr value normalizations).
* See {@link XMLInputFactory2#configureForXmlConformance} for
* required settings for standard StAX/StAX properties.
*<p>
* In addition to the standard settings, following Woodstox-specific
* settings are also done:
*<ul>
* <b>None</b>.
*</ul>
*<p>
* Notes: Does NOT change 'performance' settings (buffer sizes,
* DTD caching, coalescing, interning, accurate location info).
*/
public void configureForXmlConformance()
{
// // StAX 1.0 settings
doSupportNamespaces(true);
doSupportDTDs(true);
doSupportExternalEntities(true);
doReplaceEntityRefs(true);
// // Stax2 additional settings
// Better enable full xml:id checks:
doXmlIdTyping(true);
doXmlIdUniqChecks(true);
// Woodstox-specific ones:
}
代码示例来源:origin: FasterXML/woodstox
/**
* Method to call to make Reader created conform as closely to XML
* standard as possible, doing all checks and transformations mandated
* (linefeed conversions, attr value normalizations).
* See {@link XMLInputFactory2#configureForXmlConformance} for
* required settings for standard StAX/StAX properties.
*<p>
* In addition to the standard settings, following Woodstox-specific
* settings are also done:
*<ul>
* <b>None</b>.
*</ul>
*<p>
* Notes: Does NOT change 'performance' settings (buffer sizes,
* DTD caching, coalescing, interning, accurate location info).
*/
public void configureForXmlConformance()
{
// // StAX 1.0 settings
doSupportNamespaces(true);
doSupportDTDs(true);
doSupportExternalEntities(true);
doReplaceEntityRefs(true);
// // Stax2 additional settings
// Better enable full xml:id checks:
doXmlIdTyping(true);
doXmlIdUniqChecks(true);
// Woodstox-specific ones:
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
mFeatNsPrefixes = nsPrefixes;
mConfig = sf.createPrivateConfig();
mConfig.doSupportDTDs(true);
代码示例来源:origin: Nextdoor/bender
mFeatNsPrefixes = nsPrefixes;
mConfig = sf.createPrivateConfig();
mConfig.doSupportDTDs(true);
代码示例来源:origin: FasterXML/woodstox
mFeatNsPrefixes = nsPrefixes;
mConfig = sf.createPrivateConfig();
mConfig.doSupportDTDs(true);
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
mFeatNsPrefixes = nsPrefixes;
mConfig = sf.createPrivateConfig();
mConfig.doSupportDTDs(true);
代码示例来源:origin: woodstox/wstx-asl
doSupportDTDs(true);
doSupportExternalEntities(true);
doReplaceEntityRefs(true);
代码示例来源:origin: woodstox/wstx-lgpl
doSupportDTDs(true);
doSupportExternalEntities(true);
doReplaceEntityRefs(true);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
doSupportDTDs(true);
doSupportExternalEntities(true);
doReplaceEntityRefs(true);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
doSupportDTDs(ArgUtil.convertToBoolean(propName, value));
break;
代码示例来源:origin: woodstox/wstx-asl
doSupportDTDs(ArgUtil.convertToBoolean(propName, value));
break;
代码示例来源:origin: woodstox/wstx-lgpl
doSupportDTDs(ArgUtil.convertToBoolean(propName, value));
break;
内容来源于网络,如有侵权,请联系作者删除!