Java XMLStreamWriter writeWithCharacters(XMLStreamWriter w, String localName, String text)

Here you can find the source of writeWithCharacters(XMLStreamWriter w, String localName, String text)

Description

write With Characters

License

Apache License

Declaration

public static void writeWithCharacters(XMLStreamWriter w,
            String localName, String text) throws XMLStreamException 

Method Source Code

//package com.java2s;
//  Licensed under the Apache License, Version 2.0 (the "License");

import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;

public class Main {
    public static void writeWithCharacters(XMLStreamWriter w,
            String localName, String text) throws XMLStreamException {
        w.writeStartElement(localName);//from   ww  w . j  a va  2s .  c  o  m
        w.writeCharacters(text);
        w.writeEndElement();
    }
}

Related

  1. writeInsertPos(XMLStreamWriter w, boolean isBefore, int[] pos)
  2. writePath(XMLStreamWriter w, Supplier cssClass, Supplier fill, Supplier stroke, Supplier path)
  3. writeSimpleTag(XMLStreamWriter writer, String tag, Object value, boolean asCData)
  4. writeStartElement(XMLStreamWriter writer, QName name)
  5. writeTag(XMLStreamWriter xmlWriter, String tag, Object value)