DOMElement::getElementsByTagName()
----------------------------------

         Key: XERCESC-1509
         URL: http://issues.apache.org/jira/browse/XERCESC-1509
     Project: Xerces-C++
        Type: Bug
    Versions: 2.7.0    
 Environment: Windows 2000, MS Visual Studio .Net (c++)
    Reporter: Alexey


Here's the code that triggers the error:

//-----------------------------------------
xercesc::DOMElement* root_element = document->getDocumentElement();

xercesc::DOMNodeList* NodeList = root_element->getElementsByTagName(name); // 
elements doesn't exists

  // NodeList value is 0x00000026. Why not NULL???
  if ( NodeList )
  { 
    NodeList->SomeMethod(); // Exception!!! For example: NodeList->getLength(); 
or NodeList->item(0);
  }
//-----------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to