Package org.xmlpull.mxp1_serializer

Examples of org.xmlpull.mxp1_serializer.MXSerializer.startTag()


      ser.setOutput(os, "UTF-8");
      ser.setProperty(
          "http://xmlpull.org/v1/doc/properties.html#serializer-indentation",
          "\t");
      ser.startDocument("UTF-8", true);
      ser.startTag(NS, "event");
      attribute(ser, "xmlns", "http://michal.linhard.sk/openair/event");
      attribute(ser, "uri", e.getUri());
      attribute(ser, "name", e.getName());
      attribute(ser, "shortName", e.getShortName());
      attribute(ser, "version", e.getVersion());
View Full Code Here


      attribute(ser, "shortName", e.getShortName());
      attribute(ser, "version", e.getVersion());
      attribute(ser, "versionTime",
          Util.formatDateTime(e.getVersionTime()));

      ser.startTag(NS, "program");
      for (Stage eachStage : e) {
        ser.startTag(NS, "stage");
        attribute(ser, "name", eachStage.getName());
        attribute(ser, "shortName", eachStage.getShortName());
        if (eachStage.getMetadata() != null) {
View Full Code Here

      attribute(ser, "versionTime",
          Util.formatDateTime(e.getVersionTime()));

      ser.startTag(NS, "program");
      for (Stage eachStage : e) {
        ser.startTag(NS, "stage");
        attribute(ser, "name", eachStage.getName());
        attribute(ser, "shortName", eachStage.getShortName());
        if (eachStage.getMetadata() != null) {
          attribute(ser, "id", "st" + currentMetadataId);
          stageMetadata.put(currentMetadataId, eachStage);
View Full Code Here

          attribute(ser, "id", "st" + currentMetadataId);
          stageMetadata.put(currentMetadataId, eachStage);
          currentMetadataId++;
        }
        for (DayProgram eachDay : eachStage) {
          ser.startTag(NS, "day");
          attribute(ser, "date",
              Util.formatDate(eachDay.getDayStart()));
          for (Show eachShow : eachDay) {
            ser.startTag(NS, "show");
            attribute(ser, "start",
View Full Code Here

        for (DayProgram eachDay : eachStage) {
          ser.startTag(NS, "day");
          attribute(ser, "date",
              Util.formatDate(eachDay.getDayStart()));
          for (Show eachShow : eachDay) {
            ser.startTag(NS, "show");
            attribute(ser, "start",
                Util.formatDateTime(eachShow.getStart()));
            attribute(ser, "duration",
                Util.formatDuration(eachShow.getDuration()));
            attribute(ser, "name", eachShow.getName());
View Full Code Here

        ser.endTag(NS, "stage");
      }
      ser.endTag(NS, "program");

      ser.startTag(NS, "metadata");
      if (e.getMetadata() != null) {
        ser.startTag(NS, "event");
        attribute(ser, "url", e.getUrl());
        attribute(ser, "description", e.getDescription());
        ser.endTag(NS, "event");
View Full Code Here

      }
      ser.endTag(NS, "program");

      ser.startTag(NS, "metadata");
      if (e.getMetadata() != null) {
        ser.startTag(NS, "event");
        attribute(ser, "url", e.getUrl());
        attribute(ser, "description", e.getDescription());
        ser.endTag(NS, "event");
      }
      for (Entry<Integer, Stage> stageEntry : stageMetadata.entrySet()) {
View Full Code Here

        attribute(ser, "url", e.getUrl());
        attribute(ser, "description", e.getDescription());
        ser.endTag(NS, "event");
      }
      for (Entry<Integer, Stage> stageEntry : stageMetadata.entrySet()) {
        ser.startTag(NS, "stage");
        attribute(ser, "id", "st" + stageEntry.getKey());
        attribute(ser, "url", stageEntry.getValue().getUrl());
        attribute(ser, "description", stageEntry.getValue()
            .getDescription());
        ser.endTag(NS, "stage");
View Full Code Here

        attribute(ser, "description", stageEntry.getValue()
            .getDescription());
        ser.endTag(NS, "stage");
      }
      for (Entry<Integer, Show> showEntry : showMetadata.entrySet()) {
        ser.startTag(NS, "show");
        attribute(ser, "id", "sh" + showEntry.getKey());
        attribute(ser, "url", showEntry.getValue().getUrl());
        attribute(ser, "description", showEntry.getValue()
            .getDescription());
        ser.endTag(NS, "show");
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.