RemoveChild() gets unexpected undocumented INVALID_CHARACTER_ERR
----------------------------------------------------------------
Key: XERCESC-1402
URL: http://issues.apache.org/jira/browse/XERCESC-1402
Project: Xerces-C++
Type: Bug
Components: DOM
Versions: 2.5.0
Environment: Windows XP 200 SP 2
MS Visual C++ 6.0
Reporter: Christopher Condit
Priority: Minor
This code called to remove a child, throws INVALID_CHARACTER_ERR
// REMOVE CHILD
LONG dom_removeChild(LONG inParentNode, LONG inChildNode) {
DOMNode* myParent = (DOMNode*)inParentNode;
DOMNode* myChild = (DOMNode*)inChildNode;
DOMNode* myNodeOut;
try {
myNodeOut = myParent->removeChild(myChild);
} catch (DOMException& e) {
// do something
return(0);
}
return((LONG)myNodeOut);
}
Such an exception is undocumented and appears inappropriate, given the absence
of any character parm.
Walking through code, both parms look valid. DOM document has been loaded from
a file that I know is valid. The parent in this case is an element that I know
was validly added to said DOM via CreateElement(). All data is created,
fetched, and used just fine, but when I am done with it, the RemoveChild()
fails. Above example style of handle handling has been used successfully in
countless other instances.
Thanks, CXC
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]