Examples of elementsByTagName()


Examples of com.trolltech.qt.xml.QDomDocument.elementsByTagName()

    // Get the recognition data from the note
      QDomDocument doc = new QDomDocument();
      doc.setContent(xml);
     
      // Go through all "item" nodes
    QDomNodeList anchors = doc.elementsByTagName("item");
    for (int i=0; i<anchors.length(); i++) {
      QDomElement element = anchors.at(i).toElement();
      int x = new Integer(element.attribute("x"));   // x coordinate
      int y = new Integer(element.attribute("y"));   // y coordinate
      int w = new Integer(element.attribute("w"));   // width
View Full Code Here

Examples of com.trolltech.qt.xml.QDomDocument.elementsByTagName()

      logger.log(logger.MEDIUM, "Note guid: " +n.getGuid());
      return null;
    }
       
    List<String> returnArray = new ArrayList<String>();
    QDomNodeList anchors = doc.elementsByTagName("en-media");
    for (int i=0; i<anchors.length(); i++) {
      QDomElement enmedia = anchors.at(i).toElement();
      if (enmedia.hasAttribute("type")) {
        QDomAttr hash = enmedia.attributeNode("hash");
        returnArray.add(hash.value().toString());
View Full Code Here

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

      tempFiles = new ArrayList<QTemporaryFile>();
    tempFiles.clear();
    QDomElement docElem = doc.documentElement();
   
    // Modify en-media tags
    QDomNodeList anchors = docElem.elementsByTagName("en-media");
    int enMediaCount = anchors.length();
    for (int i=enMediaCount-1; i>=0; --i) {
      QDomElement enmedia = anchors.at(i).toElement();
      if (enmedia.hasAttribute("type")) {
        QDomAttr attr = enmedia.attributeNode("type");
View Full Code Here

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

     
    doc.setContent(resourceBinary);
    QDomElement docElem = doc.documentElement();
     
    // look for text tags
    QDomNodeList anchors = docElem.elementsByTagName("t");
    for (int i=0; i<anchors.length() && keepRunning; i++) {
      if (interrupt) {
        if (interrupt) {
          processInterrupt();
        }
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.