Don't miss entity declarations when generate auto complete prompt
This commit is contained in:
parent
47483ca5d8
commit
87eac6e5aa
|
@ -346,6 +346,14 @@ int XMLCALL XmlPromptGenerator::externalentityrefhandler (
|
||||||
pThis->buildElementPrompt ( d, &curElem, substitutions );
|
pThis->buildElementPrompt ( d, &curElem, substitutions );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NameIdPoolEnumerator<DTDEntityDecl>
|
||||||
|
entityEnum = grammar->getEntityEnumerator();
|
||||||
|
while ( entityEnum.hasMoreElements() && !pThis->TestDestroy() )
|
||||||
|
{
|
||||||
|
const DTDEntityDecl &entity = entityEnum.nextElement();
|
||||||
|
d->entitySet.insert ( WrapXerces::toString ( entity.getName() ) );
|
||||||
|
}
|
||||||
|
|
||||||
return pThis->TestDestroy() ? XML_STATUS_ERROR : XML_STATUS_OK;
|
return pThis->TestDestroy() ? XML_STATUS_ERROR : XML_STATUS_OK;
|
||||||
|
|
||||||
#else // !PREFER_EXPAT_TO_XERCES_C
|
#else // !PREFER_EXPAT_TO_XERCES_C
|
||||||
|
|
Loading…
Reference in New Issue