/** * 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: }
mFeatNsPrefixes = nsPrefixes; mConfig = sf.createPrivateConfig(); mConfig.doSupportDTDs(true);
doSupportDTDs(ArgUtil.convertToBoolean(propName, value)); break;
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); }
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); }
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); }
/** * 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: }
/** * 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: }
/** * 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: }
/** * 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: }
mFeatNsPrefixes = nsPrefixes; mConfig = sf.createPrivateConfig(); mConfig.doSupportDTDs(true);
mFeatNsPrefixes = nsPrefixes; mConfig = sf.createPrivateConfig(); mConfig.doSupportDTDs(true);
mFeatNsPrefixes = nsPrefixes; mConfig = sf.createPrivateConfig(); mConfig.doSupportDTDs(true);
mFeatNsPrefixes = nsPrefixes; mConfig = sf.createPrivateConfig(); mConfig.doSupportDTDs(true);
doSupportDTDs(true); doSupportExternalEntities(true); doReplaceEntityRefs(true);
doSupportDTDs(true); doSupportExternalEntities(true); doReplaceEntityRefs(true);
doSupportDTDs(true); doSupportExternalEntities(true); doReplaceEntityRefs(true);
doSupportDTDs(ArgUtil.convertToBoolean(propName, value)); break;
doSupportDTDs(ArgUtil.convertToBoolean(propName, value)); break;
doSupportDTDs(ArgUtil.convertToBoolean(propName, value)); break;