Package org.xmlpull.v1

Examples of org.xmlpull.v1.XmlSerializer.endTag()


            xml.startTag(null, "file");
            xml.attribute(null, "name", e.getKey());
            xml.attribute(null, "contentType", e.getValue());
            if (defaultFile.equals(e.getKey()))
                xml.attribute(null, "isDefault", "true");
            xml.endTag(null, "file");
        }

        xml.endTag(null, "pdashReportArchive");
        xml.endDocument();
    }
View Full Code Here


            if (defaultFile.equals(e.getKey()))
                xml.attribute(null, "isDefault", "true");
            xml.endTag(null, "file");
        }

        xml.endTag(null, "pdashReportArchive");
        xml.endDocument();
    }

    private void writeIndexFile() throws IOException {
        zipOut.putNextEntry(new ZipEntry(INDEX_FILENAME));
View Full Code Here

            ser.startTag(null, RESOURCE_TAG);
            ser.attribute(null, NAME_ATTR, resourceName);
            ser.attribute(null, MOD_TIME_ATTR, Long.toString(lastMod));
            ser.attribute(null, CHECKSUM_ATTR, checksum.toString());
            ser.endTag(null, RESOURCE_TAG);
        }

        ser.endTag(null, DOCUMENT_TAG);
        ser.endDocument();
    }
View Full Code Here

            ser.attribute(null, MOD_TIME_ATTR, Long.toString(lastMod));
            ser.attribute(null, CHECKSUM_ATTR, checksum.toString());
            ser.endTag(null, RESOURCE_TAG);
        }

        ser.endTag(null, DOCUMENT_TAG);
        ser.endDocument();
    }

    public static ResourceCollectionInfo parseListing(InputStream in)
            throws IOException {
View Full Code Here

                } else {
                    xml.startTag(null, RESULT_DATA_TAG);
                    xml.attribute(null, NAME_ATTR, name);
                    if (value != null)
                        xml.attribute(null, VALUE_ATTR, value);
                    xml.endTag(null, RESULT_DATA_TAG);
                }
            }

            xml.endTag(null, RESULT_ITEM_TAG);
        }
View Full Code Here

                        xml.attribute(null, VALUE_ATTR, value);
                    xml.endTag(null, RESULT_DATA_TAG);
                }
            }

            xml.endTag(null, RESULT_ITEM_TAG);
        }

        xml.endTag(null, RESULT_SET_TAG);

        xml.endDocument();
View Full Code Here

            }

            xml.endTag(null, RESULT_ITEM_TAG);
        }

        xml.endTag(null, RESULT_SET_TAG);

        xml.endDocument();
    }

    private String textToSafeAttrName(String text) {
View Full Code Here

                ExportFileEntry file = (ExportFileEntry) i.next();
                writeManifestFileEntry(xml, file.getFilename(), file.getType(),
                    file.getVersion());
            }
       
        xml.endTag(null, ARCHIVE_ELEM);
        xml.ignorableWhitespace(NEWLINE);
        xml.endDocument();

        zipOut.closeEntry();
    }
View Full Code Here

        } catch (IONoSuchElementException ionsee) {
            throw ionsee.getIOException();
        }

        ser.endTag(null, DOC_ROOT_ELEM);
        ser.ignorableWhitespace(NEWLINE);
        ser.endDocument();
       
        if (close)
            out.close();
View Full Code Here

       
        StudataExporterXmlPrograms programExporter = new StudataExporterXmlPrograms(
                xml, projectPaths, data);
        programExporter.writeProgramData();

        xml.endTag(null, "dataroot");
        xml.endDocument();
    }
   
    static String formatDouble(double d) {
        // cleanup bad double values
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.