Skip to content
Snippets Groups Projects
Commit 37c493a7 authored by Unknown (aruna1)'s avatar Unknown (aruna1)
Browse files

Changed hasChildnode() function to directly get the children information and...

Changed hasChildnode() function to directly get the children information and avoid copying entity tree.


git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@172398 13f79535-47bb-0310-9956-ffa450edef68
parent 48531262
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,9 @@ unsigned int EntityReferenceImpl::getLength()
*/
bool EntityReferenceImpl::hasChildNodes()
{
#if 0
// defer this query for now.
//There's lot of work to be done here before it can return the actual value.
bool haskids=false;
DocumentTypeImpl *doctype;
......@@ -216,6 +219,9 @@ bool EntityReferenceImpl::hasChildNodes()
haskids=entDef->hasChildNodes();
return haskids;
#endif
return firstChild!=null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment