Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-48

DOM_Node::cloneNode() does not clone the pointer value via setUserData()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Won't Fix
    • 1.4
    • None
    • DOM
    • None
    • Operating System: Solaris
      Platform: Sun
    • 1533

    Description

      Why DOM_Node::cloneNode() does not clone the pointer assigned to a NOM_Node via
      DOM_Node::setUserData()?

      I only use DOM_Node::setUserData() to mark a node with a value:

      minode.setUserData( (void *) 1 );
      DOM_Node minode_cloned = minode.cloneNode();
      int processed = (int) minode_cloned.getUserData();

      and when I clone this node, the getUserData() of the cloned node returns
      processed=0.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmf@abysal.com jmf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: