Examples of parentNode()


Examples of com.trolltech.qt.xml.QDomElement.parentNode()

      }

      // Check if we have a LaTeX image.  Remove the parent link tag
      if (enType.equalsIgnoreCase("en-latex")) {
        enType = "en-media";
        QDomNode parent = e.parentNode();
        parent.removeChild(e);
        parent.parentNode().replaceChild(e, parent);
      }
     
      // If we've gotten this far, we have an en-media tag
View Full Code Here

Examples of com.trolltech.qt.xml.QDomElement.parentNode()

    }
   
    if (node.nodeName().equalsIgnoreCase("en-hilight")) {
      QDomElement e = node.toElement();
      QDomText newText = doc.createTextNode(e.text());
      e.parentNode().replaceChild(newText,e);
    }
    if (node.nodeName().equalsIgnoreCase("span")) {
      QDomElement e = node.toElement();
      if (e.attribute("class").equalsIgnoreCase("en-hilight") || e.attribute("class").equalsIgnoreCase("en-spell")) {
        QDomText newText = doc.createTextNode(e.text());
View Full Code Here

Examples of com.trolltech.qt.xml.QDomElement.parentNode()

    }
    if (node.nodeName().equalsIgnoreCase("span")) {
      QDomElement e = node.toElement();
      if (e.attribute("class").equalsIgnoreCase("en-hilight") || e.attribute("class").equalsIgnoreCase("en-spell")) {
        QDomText newText = doc.createTextNode(e.text());
        e.parentNode().replaceChild(newText,e);
      }
      if (e.attribute("pdfnavigationtable").equalsIgnoreCase("true")) {
        node.parentNode().removeChild(node);
      }
    }
View Full Code Here

Examples of com.trolltech.qt.xml.QDomNode.parentNode()

      // Check if we have a LaTeX image.  Remove the parent link tag
      if (enType.equalsIgnoreCase("en-latex")) {
        enType = "en-media";
        QDomNode parent = e.parentNode();
        parent.removeChild(e);
        parent.parentNode().replaceChild(e, parent);
      }
     
      // If we've gotten this far, we have an en-media tag
      e.setTagName(enType);
      resources.add(e.attribute("guid"));
View Full Code Here

Examples of org.apache.xindice.xml.dom.traversal.TreeWalkerImpl.parentNode()

        tw.nextNode();
        tw.nextNode();
        tw.nextNode();
        assertEquals("f", tw.getCurrentNode().getLocalName());

        assertEquals("d", tw.parentNode().getLocalName());
        assertEquals("c", tw.parentNode().getLocalName());
        assertEquals("a", tw.parentNode().getLocalName());
        assertEquals(null, tw.parentNode());
    }
View Full Code Here

Examples of org.apache.xindice.xml.dom.traversal.TreeWalkerImpl.parentNode()

        tw.nextNode();
        tw.nextNode();
        assertEquals("f", tw.getCurrentNode().getLocalName());

        assertEquals("d", tw.parentNode().getLocalName());
        assertEquals("c", tw.parentNode().getLocalName());
        assertEquals("a", tw.parentNode().getLocalName());
        assertEquals(null, tw.parentNode());
    }

}
View Full Code Here

Examples of org.apache.xindice.xml.dom.traversal.TreeWalkerImpl.parentNode()

        tw.nextNode();
        assertEquals("f", tw.getCurrentNode().getLocalName());

        assertEquals("d", tw.parentNode().getLocalName());
        assertEquals("c", tw.parentNode().getLocalName());
        assertEquals("a", tw.parentNode().getLocalName());
        assertEquals(null, tw.parentNode());
    }

}
View Full Code Here

Examples of org.apache.xindice.xml.dom.traversal.TreeWalkerImpl.parentNode()

        assertEquals("f", tw.getCurrentNode().getLocalName());

        assertEquals("d", tw.parentNode().getLocalName());
        assertEquals("c", tw.parentNode().getLocalName());
        assertEquals("a", tw.parentNode().getLocalName());
        assertEquals(null, tw.parentNode());
    }

}
View Full Code Here

Examples of org.bladerunnerjs.model.engine.Node.parentNode()

    TestRootNode rootNode = new TestRootNode(new File(TEST_DIR, "brjs-root-node"));
    Node childNode1 = rootNode.childNode("1");
   
    assertSame(childNode1, rootNode.childNode("1"));
    assertSame(childNode1, rootNode.locateAncestorNodeOfClass(rootNode.childNode("1").grandChildNode("2").dir(), TestChildNode.class));
    assertNotSame(childNode1, new TestChildNode(rootNode, childNode1.parentNode(), childNode1.dir(), "1"));
  }
 
  @Test
  public void cachedNonExistentItemsWillLaterBeUsedIfTheItemSubsequentlyComesIntoExistence() throws Exception
  {
View Full Code Here

Examples of org.bladerunnerjs.model.engine.Node.parentNode()

      if(node instanceof BundlableNode)
      {
        bundlableNode = (BundlableNode) node;
      }
     
      node = node.parentNode();
    }
   
    if (bundlableNode == null) throw new InvalidBundlableNodeException( RelativePathUtility.get(getFileInfoAccessor(), dir(), file) );
   
    return bundlableNode;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.