mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-22 08:02:06 +02:00
add optional name pool size argument to DOMParser constructor
This commit is contained in:
@@ -39,6 +39,15 @@ DOMParser::DOMParser(NamePool* pNamePool):
|
||||
}
|
||||
|
||||
|
||||
DOMParser::DOMParser(unsigned long namePoolSize):
|
||||
_pNamePool(new NamePool(namePoolSize)),
|
||||
_filterWhitespace(false)
|
||||
{
|
||||
_saxParser.setFeature(XMLReader::FEATURE_NAMESPACES, true);
|
||||
_saxParser.setFeature(XMLReader::FEATURE_NAMESPACE_PREFIXES, true);
|
||||
}
|
||||
|
||||
|
||||
DOMParser::~DOMParser()
|
||||
{
|
||||
if (_pNamePool) _pNamePool->release();
|
||||
|
Reference in New Issue
Block a user