You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Alexey (JIRA)" <xe...@xml.apache.org> on 2005/10/04 10:25:47 UTC
[jira] Created: (XERCESC-1509) DOMElement::getElementsByTagName()
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Closed: (XERCESC-1509) DOMElement::getElementsByTagName()
Posted by "Gareth Reakes (JIRA)" <xe...@xml.apache.org>.
[ 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org