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 "cargilld (JIRA)" <xe...@xml.apache.org> on 2005/08/09 15:02:35 UTC
[jira] Resolved: (XERCESC-1402) RemoveChild() gets unexpected undocumented INVALID_CHARACTER_ERR
[ http://issues.apache.org/jira/browse/XERCESC-1402?page=all ]
cargilld resolved XERCESC-1402:
-------------------------------
Resolution: Incomplete
Closing, since no response to provide additional information required.
David
> 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
> Attachments: screenshot-1.jpg
>
> 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
-
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