public XNodeSetForDOM(Node node, DTMManager dtmMgr) {
   m_dtmMgr = dtmMgr;
   m_origObj = node;
   int dtmHandle = dtmMgr.getDTMHandleFromNode(node);
   m_obj = new NodeSetDTM(dtmMgr);
   ((NodeSetDTM) m_obj).addNode(dtmHandle);
 }
Esempio n. 2
0
 /**
  * Given a W3C DOM node, try and return a DTM handle. Note: calling this may be non-optimal.
  *
  * @param node Non-null reference to a DOM node.
  * @return a valid DTM handle.
  */
 public int getDTMHandleFromNode(org.w3c.dom.Node node) {
   return m_dtmManager.getDTMHandleFromNode(node);
 }