[ http://issues.apache.org/jira/browse/XERCESC-1509?page=all ]
Gareth Reakes closed XERCESC-1509:
----------------------------------
Resolution: Invalid
Hi, NodeList is an object. The thing you have have is a node list with 0 things
in it.
Gareth
> 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]