mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 03:03:23 +02:00
add optional name pool size argument to DOMParser constructor
This commit is contained in:
@@ -40,10 +40,13 @@ class XML_API DOMParser
|
|||||||
/// support of a WhitespaceFilter.
|
/// support of a WhitespaceFilter.
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DOMParser(NamePool* pNamePool = 0);
|
explicit DOMParser(NamePool* pNamePool = 0);
|
||||||
/// Creates a new DOMParser.
|
/// Creates a new DOMParser.
|
||||||
/// If a NamePool is given, it becomes the Document's NamePool.
|
/// If a NamePool is given, it becomes the Document's NamePool.
|
||||||
|
|
||||||
|
explicit DOMParser(unsigned long namePoolSize);
|
||||||
|
/// Creates a new DOMParser, using the given name pool size.
|
||||||
|
|
||||||
~DOMParser();
|
~DOMParser();
|
||||||
/// Destroys the DOMParser.
|
/// Destroys the DOMParser.
|
||||||
|
|
||||||
|
@@ -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()
|
DOMParser::~DOMParser()
|
||||||
{
|
{
|
||||||
if (_pNamePool) _pNamePool->release();
|
if (_pNamePool) _pNamePool->release();
|
||||||
|
Reference in New Issue
Block a user