Package org.exist.memtree

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


                                builder.endElement();
                            }
                        }
           
                        for (String userFlag : userFlags) {
                            builder.startElement( new QName( "flag", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                            builder.addAttribute( new QName( "type", null, null ), "user" );
                            builder.addAttribute(new QName( "value", null, null ), userFlag);
                            builder.endElement();
                        }
View Full Code Here


         
          if( includeHeaders ) {
            Enumeration headers = message.getAllHeaders();
           
            if( headers.hasMoreElements() ) {
              builder.startElement( new QName( "headers", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
             
              while( headers.hasMoreElements() ) {
                Header header = (Header)headers.nextElement();
               
                builder.startElement( new QName( "header", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
View Full Code Here

              builder.startElement( new QName( "headers", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
             
              while( headers.hasMoreElements() ) {
                Header header = (Header)headers.nextElement();
               
                builder.startElement( new QName( "header", MailModule.NAMESPACE_URI, MailModule.PREFIX ), null );
                      builder.addAttribute( new QName( "name", null, null ), header.getName() );
                builder.addAttribute( new QName( "value", null, null ), header.getValue() );
                builder.endElement();
              }
             
View Full Code Here

//                if (qn.getPrefix() == null && context.getInScopeNamespace("") != null) {
//                     qn.setNamespaceURI(context.getInScopeNamespace(""));
//                }
//             }
//
            int nodeNr = builder.startElement(qn, null);

            // process attributes
            if (use_attribute_sets != null) {
              ((XSLContext)context).getXSLStylesheet()
                .attributeSet(use_attribute_sets, contextSequence, contextItem);
View Full Code Here

    private ElementImpl createReport(int exitValue, List<String> output, List<String> cmdArgs) {
        MemTreeBuilder builder = context.getDocumentBuilder();
        AttributesImpl attribs = new AttributesImpl();
        attribs.addAttribute("", "exitCode", "exitCode", "CDATA", Integer.toString(exitValue));
        builder.startDocument();
        int nodeNr = builder.startElement(RESULT_QNAME, attribs);

        // print command line
        StringBuilder cmdLine = new StringBuilder();
        for (String param : cmdArgs) {
            cmdLine.append(param).append(' ');
View Full Code Here

        // print command line
        StringBuilder cmdLine = new StringBuilder();
        for (String param : cmdArgs) {
            cmdLine.append(param).append(' ');
        }
        builder.startElement(COMMAND_LINE_QNAME, null);
        builder.characters(cmdLine.toString());
        builder.endElement();

        // print received output to <stdout>
        builder.startElement(STDOUT_QNAME, null);
View Full Code Here

        builder.startElement(COMMAND_LINE_QNAME, null);
        builder.characters(cmdLine.toString());
        builder.endElement();

        // print received output to <stdout>
        builder.startElement(STDOUT_QNAME, null);
        for (String line : output) {
            builder.startElement(LINE_QNAME, null);
            builder.characters(line);
            builder.endElement();
        }
View Full Code Here

        builder.endElement();

        // print received output to <stdout>
        builder.startElement(STDOUT_QNAME, null);
        for (String line : output) {
            builder.startElement(LINE_QNAME, null);
            builder.characters(line);
            builder.endElement();
        }
        builder.endElement();
View Full Code Here

    Sequence    xmlResult     = Sequence.EMPTY_SEQUENCE;
   
    MemTreeBuilder builder = context.getDocumentBuilder();
         
    builder.startDocument();
      builder.startElement( new QName( "dsml", DSML_NAMESPACE, DSML_PREFIX ), null );
    builder.addAttribute( new QName( "dn", null, null ), dn );
    builder.startElement( new QName( "directory-entries", DSML_NAMESPACE, DSML_PREFIX ), null );
   
    while( results.hasMore() ) {
      SearchResult result = (SearchResult)results.next();
View Full Code Here

    MemTreeBuilder builder = context.getDocumentBuilder();
         
    builder.startDocument();
      builder.startElement( new QName( "dsml", DSML_NAMESPACE, DSML_PREFIX ), null );
    builder.addAttribute( new QName( "dn", null, null ), dn );
    builder.startElement( new QName( "directory-entries", DSML_NAMESPACE, DSML_PREFIX ), null );
   
    while( results.hasMore() ) {
      SearchResult result = (SearchResult)results.next();
     
      builder.startElement( new QName( "entry", DSML_NAMESPACE, DSML_PREFIX ), null );
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.