Package javax.xml.transform.sax

Examples of javax.xml.transform.sax.TransformerHandler.endElement()


        //atts.addAttribute("","","coreferenceResolution","CDATA",String.valueOf(coreferenceResolution));
        hd.startElement("","","Annotation",atts);

        getResourcesXml(occList, hd, atts);

        hd.endElement("","","Annotation");
        hd.endDocument();
        xml = out.toString("utf-8");
        } catch (Exception e) {
            throw new OutputException("Error creating XML output.", e);
View Full Code Here


                atts.addAttribute("", "", "visibility", "CDATA", "true"); //TODO annotation filters should mark occurrences for display or not, and we get the value here.

                getResourcesXml(candidateMap.get(sf), hd, atts);

                hd.startElement("","","SurfaceForm",atts);
                hd.endElement("","","SurfaceForm");
                i++;
            }
            if (i>0)
                hd.endElement("","","SurfaceForms");
View Full Code Here

                hd.startElement("","","SurfaceForm",atts);
                hd.endElement("","","SurfaceForm");
                i++;
            }
            if (i>0)
                hd.endElement("","","SurfaceForms");

            hd.endElement("", "", "Annotation");
            hd.endDocument();
            xml = out.toString("utf-8");
        } catch (Exception e) {
View Full Code Here

                i++;
            }
            if (i>0)
                hd.endElement("","","SurfaceForms");

            hd.endElement("", "", "Annotation");
            hd.endDocument();
            xml = out.toString("utf-8");
        } catch (Exception e) {
            throw new OutputException("Error creating XML output.", e);
View Full Code Here

            hd.startElement("","","Annotation",atts);

            atts.clear();
            atts.addAttribute("","","message","CDATA",message);
            hd.startElement("","","Error",atts);
            hd.endElement("","","Error");

            hd.endElement("","","Annotation");
            hd.endDocument();
            xmlDoc = out.toString("utf-8");
        } catch (Exception e) {
View Full Code Here

            atts.clear();
            atts.addAttribute("","","message","CDATA",message);
            hd.startElement("","","Error",atts);
            hd.endElement("","","Error");

            hd.endElement("","","Annotation");
            hd.endDocument();
            xmlDoc = out.toString("utf-8");
        } catch (Exception e) {
            throw new OutputException("Error creating XML output.",e);
        }
View Full Code Here

      atts.clear();

      fillParameterElement(parameter, hd);

      hd.endElement("", "",
          UserParameterElementName.PARAMETER.getElementName());
      completedParameters++;
    }

    hd.endElement("", "",
View Full Code Here

      hd.endElement("", "",
          UserParameterElementName.PARAMETER.getElementName());
      completedParameters++;
    }

    hd.endElement("", "",
        UserParameterElementName.PARAMETERS.getElementName());

    hd.endDocument();

  }
View Full Code Here

    // <NAME>
    hd.startElement("", "",
        PeakListElementName.PEAKLIST_NAME.getElementName(), atts);
    hd.characters(peakList.getName().toCharArray(), 0, peakList.getName()
        .length());
    hd.endElement("", "",
        PeakListElementName.PEAKLIST_NAME.getElementName());

    // <PEAKLIST_DATE>
    String dateText = "";
    if (((SimplePeakList) peakList).getDateCreated() == null) {
View Full Code Here

      dateText = dateFormat.format(date);
    }
    hd.startElement("", "",
        PeakListElementName.PEAKLIST_DATE.getElementName(), atts);
    hd.characters(dateText.toCharArray(), 0, dateText.length());
    hd.endElement("", "",
        PeakListElementName.PEAKLIST_DATE.getElementName());

    // <QUANTITY>
    hd.startElement("", "", PeakListElementName.QUANTITY.getElementName(),
        atts);
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.