Examples of endElement()


Examples of org.codehaus.plexus.util.xml.XMLWriter.endElement()

        writer.endElement();
        writer.startElement("natures");
        writer.startElement("nature");
        writer.writeText("org.eclipse.jdt.core.javanature");
        writer.endElement();
        writer.endElement();
        writer.endElement();
        IOUtil.close(fileWriter);
        this.logger.info("Project file written --> '" + projectFile + "'");
    }
}
View Full Code Here

Examples of org.codehaus.plexus.util.xml.XMLWriter.endElement()

        writer.startElement("natures");
        writer.startElement("nature");
        writer.writeText("org.eclipse.jdt.core.javanature");
        writer.endElement();
        writer.endElement();
        writer.endElement();
        IOUtil.close(fileWriter);
        this.logger.info("Project file written --> '" + projectFile + "'");
    }
}
View Full Code Here

Examples of org.databene.commons.xml.SimpleXMLWriter.endElement()

      OutputStream out = new BufferedOutputStream(new FileOutputStream(checksFile));
      SimpleXMLWriter writer = new SimpleXMLWriter(out, Encodings.UTF_8, true);
      writer.startDocument();
      writer.startElement("dbsanity");
      int checkCount = process(schemaChange, writer);
      writer.endElement("dbsanity");
      writer.endDocument();
      writer.close();
      return checkCount;
    } catch (Exception e) {
      throw new RuntimeException(e);
View Full Code Here

Examples of org.dom4j.io.XMLWriter.endElement()

        XMLWriter writer = new XMLWriter(out, OutputFormat.createPrettyPrint());
        writer.startDocument();
        writer.startElement(null, "root", "root", new AttributesImpl());
        writer.startElement(null, "code", "code", new AttributesImpl());
        writer.characters(new char[] { 'f', 'o', 'o' }, 0, 3);
        writer.endElement(null, "code", "code");
        writer.characters(new char[] { ' ', 'b', 'a', 'r' }, 0, 4);
        writer.endElement(null, "root", "root");
        writer.endDocument();
        writer.close();
View Full Code Here

Examples of org.eclipse.persistence.internal.oxm.NodeValue.endElement()

     
        if((null != xPathNode.getXPathFragment() && xPathNode.getXPathFragment().nameIsText()) || xpathNodeIsMixedContent) {
            xpathNodeIsMixedContent = false;
            NodeValue xPathNodeUnmarshalNodeValue = xPathNode.getUnmarshalNodeValue();
            if (null != xPathNodeUnmarshalNodeValue) {
                xPathNodeUnmarshalNodeValue.endElement(xPathFragment, this);
                if (xPathNode.getParent() != null) {
                    xPathNode = xPathNode.getParent();
                }
            }
        }
View Full Code Here

Examples of org.exist.memtree.MemTreeBuilder.endElement()

                                for( final Iterator<Object> iter = properties.keySet().iterator(); iter.hasNext(); ) {
                                    final String key = iter.next().toString();
                                    builder.startElement( new QName( key, Namespaces.EXIST_NS, "" ), null );
                                    builder.characters( (String)properties.get( key ) );
                                    builder.endElement();
                                }
                                builder.endElement();
                            }
                        }
                        catch( final IOException e ) {
View Full Code Here

Examples of org.exist.storage.DBBroker.endElement()

                    broker.getIndexController().indexNode(transaction, elem, lastPath, listener);
                    elem.setChildCount(0);
                    last.setNode(elem);
                    //process child nodes
                    elem.appendChildren(transaction, newNodeId.newChild(), null, last, lastPath, ch, listener);
                    broker.endElement(elem, lastPath, null);
                    broker.getIndexController().endElement(transaction, elem, lastPath, listener);
                    lastPath.removeLastComponent();
                    return elem;
                case Node.TEXT_NODE :
                    final TextImpl text = new TextImpl(newNodeId, ((Text) child).getData());
View Full Code Here

Examples of org.exist.util.serializer.SAXSerializer.endElement()

            serializer.startElement("", "history", "history", attrs);
            for(final ListIterator<String> i = queryHistory.listIterator(p); i.hasNext(); ) {
                serializer.startElement("", "query", "query", attrs);
                final String next = i.next();
                serializer.characters(next.toCharArray(), 0, next.length());
                serializer.endElement("", "query", "query");
            }
            serializer.endElement("", "history", "history");
            serializer.endDocument();
            writer.close();
            SerializerPool.getInstance().returnObject(serializer);
View Full Code Here

Examples of org.exolab.castor.xml.UnmarshalHandler.endElement()

      for (int i = 0; i < parameters.length; i++) {
         param = (Param) parameters[i];
         handler.startElement(param.getName(), null);
         handler.characters(param.getValue().toCharArray(), 0, param.getValue().length());
         handler.endElement(param.getName());
      }

      handler.endElement("data-source");
      handler.endDocument();
    } catch (SAXException e) {
View Full Code Here

Examples of org.formulacompiler.spreadsheet.internal.odf.xml.stream.ElementWriter.endElement()

          break;
        case '\t':
          spaceWriter.flush();
          charWriter.flush();
          tabWriter.startElement( null );
          tabWriter.endElement();
          break;
        case ' ':
          charWriter.flush();
          spaceWriter.add();
          break;
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.